I'm able to get approximate time without milliseconds by query
SELECT UNIX_TIMESTAMP(NOW());
but how to get precise current timestamp with milliseconds?
For example, after executing the above query I get 1352717640
value, but I want to get 1352717640xxx
value.
UPD
And other answers from SO (like this) offers solution like
SELECT UNIX_TIMESTAMP(NOW(3))*1000;
but this query only fills up milliseconds place with '000', but I want to get PRECISE value of milliseconds, like 1352717640937
.
In SQLyog:
And in mysql console:
Is it possible at all for MySQL 5.1?