MYSQL将时间格式化

SELECT *,DATE_FORMAT(FROM_UNIXTIME(createtime), "%Y/%m/%d %H:%i:%s") AS dateFormat FROM `InApp_AdLog` where imei != '' ORDER BY id desc limit 10;

posted @ 2013-10-08 10:50  jshaibozhong  阅读(413)  评论(0编辑  收藏  举报