获取13位毫秒值
select REPLACE(unix_timestamp(current_timestamp(3)),'.','');
结果:

该内容展示了如何使用SQL的current_timestamp(3)函数获取当前时间,并通过unix_timestamp转换为13位毫秒值,然后使用REPLACE函数移除小数点,得到整型的毫秒时间戳。
获取13位毫秒值
select REPLACE(unix_timestamp(current_timestamp(3)),'.','');
结果:

1958

被折叠的 条评论
为什么被折叠?