from_unixtime的用法

数据库中的时间存储一般都是存入时间戳,想直接从数据库中拿出xxxx-xx-xx xx:xx:xx格式的时间,需要使用from_unixtime函数,数据库语句示例:

select from_unixtime(字段名) from 表名 

猜你喜欢

转载自blog.csdn.net/xiangzhihaoCSDN/article/details/76055571