1. 程式人生 > 其它 >Mysql 各種系統當前時間獲取(日期,時間戳[秒/毫秒])

Mysql 各種系統當前時間獲取(日期,時間戳[秒/毫秒])

技術標籤:Mysql 記錄mysql

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

結果如下
在這裡插入圖片描述