FROM_UNIXTIME(字段名,'%Y-%m-%d %H:%i:%s') //時(shí)間格式自己看著調(diào)
比如
select FROM_UNIXTIME(`addtime`,'%Y-%m-%d %H:%i:%s') as addtime from user where 1
FROM_UNIXTIME(字段名,'%Y-%m-%d %H:%i:%s') //時(shí)間格式自己看著調(diào)
比如
select FROM_UNIXTIME(`addtime`,'%Y-%m-%d %H:%i:%s') as addtime from user where 1