CURRENT_TIMESTAMP in milliseconds

后端 未结 19 882
失恋的感觉
失恋的感觉 2020-12-07 23:48

Is there any way to get milliseconds out of a timestamp in MySql or PostgreSql (or others just out of curiosity)?

SELECT CURRENT_TI         


        
19条回答
  •  囚心锁ツ
    2020-12-08 00:24

    Easiest way I found to receive current time in milliseconds in MySql:

    SELECT (UNIX_TIMESTAMP(NOW(3)) * 1000)
    

    Since MySql 5.6.

提交回复
热议问题