时间戳变成 标准时间展示的方法

用法: FROM_UNIXTIME( 要转换的列 ,'%Y-%m-%d %H:%i:%s') 

例子:  select id,FROM_UNIXTIME(updated_at,'%Y-%m-%d %H:%i:%s') from zy_wx_template_massage_log

原数据库:

猜你喜欢

转载自www.cnblogs.com/kaibindirver/p/9777492.html
今日推荐