标签:
数据库日期类型是int类型的,该查询结果是datetime类型的select from_unixtime( `dateline` ) from cdb_posts如果原来类型是datetime类型,查询结果要是int类型则select unix_timestamp( `dateline` ) from cdb_posts
php int 与 datetime 转换
原文地址:http://www.cnblogs.com/honeynm/p/4714309.html