select UNIX_TIMESTAMP()
select UNIX_TIMESTAMP(CURRENT_TIMESTAMP(3)) 1000
或
select UNIX_TIMESTAMP(NOW(3)) 1000
3代表小数点后3位小数(也就到毫秒)
select unix_timestamp(CURDATE())*1000
SELECT unix_timestamp(DATE_ADD(CURDATE(), INTERVAL 9 HOUR))*1000
SELECT DATE_ADD(CURDATE(), INTERVAL 24 HOUR)
如果算毫秒数就unix_timestamp,再*1000
SELECT DATE_SUB(CURDATE(),INTERVAL 1DAY)
如果算毫秒数就unix_timestamp,再*1000
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)