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 MariaDB you can use
SELECT NOW(4);
To get milisecs. See here, too.