表里的时间:1634021288917
转换后:2021-10-12 14:48:09
方法:select FROM_UNIXTIME(t.updated_time/1000,‘%Y-%m-%d %H:%i:%s’) from table t order by t.updated_time desc
MySQL时间戳转换
于 2021-10-12 15:56:40 首次发布
表里的时间:1634021288917
转换后:2021-10-12 14:48:09
方法:select FROM_UNIXTIME(t.updated_time/1000,‘%Y-%m-%d %H:%i:%s’) from table t order by t.updated_time desc