yi美小能手的博客02 回答from_unixtime()是MySQL里的时间函数select uid,userid,username,email,FROM_UNIXTIME(addtime,'%Y年%m月%d') from members以上例子是sql语句的例子,直接能将mysql的时间戳类型转换成日期格式date为需要处理...
bin oy的博客我的应用:select *,FROM_UNIXTIME(create_at, '%Y-%m-%d') as date from stock转载原文:FROM_UNIXTIME( ):转为时间戳类型时间UNIX_TIMESTAMP( ) :返回长×××类型时间from_unixtime()是MySQL里的时间函数select ...