Wondercease

浙ICP备2022017321号

MySQL 时间

1.生成毫秒级别的时间戳

select current_timestamp(3); 2020-08-08 12:09:42.192

select unix_timestamp(current_timestamp(3)) 1596859992.347

select REPLACE(unix_timestamp(current_timestamp(3)),’.’,”) 1596859992347

发表评论

您的电子邮箱地址不会被公开。