mysql 获取系统时间(毫秒数)

sql语句:

SELECT 
TIME_TO_SEC(NOW()),
NOW(),
current_timestamp(),
REPLACE(unix_timestamp(current_timestamp(3)),'.','');

执行结果:
在这里插入图片描述

最后一个,就是你想要的系统毫秒数了

猜你喜欢

转载自blog.csdn.net/hacker_Lees/article/details/83654081
今日推荐