mysql时间操作
1.10位数字转时间
select from_unixtime("1669824447")
2.时间转10位数字
select unix_timestamp("2022-12-1 11:02:56")
3.将最新年份的放在最前面
update mac_vod set vod_time = '1669863776' where vod_year = 2022
select from_unixtime("1669824447")
2.时间转10位数字
select unix_timestamp("2022-12-1 11:02:56")
3.将最新年份的放在最前面
update mac_vod set vod_time = '1669863776' where vod_year = 2022

浙公网安备 33010602011771号