Is there any way to get milliseconds out of a timestamp in MySql or PostgreSql (or others just out of curiosity)?
MySql
PostgreSql
SELECT CURRENT_TI
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