CURRENT_TIMESTAMP in milliseconds

后端 未结 19 952
失恋的感觉
失恋的感觉 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:35

    In Mysql 5.7+ you can execute

    select current_timestamp(6)
    

    for more details

    https://dev.mysql.com/doc/refman/5.7/en/fractional-seconds.html

提交回复
热议问题