Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 427 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 427 Bytes

mysql_microsecnow

Mysql UDF to add a clone of NOW() that return microseconds

After installing it, just execute in the mysql shell:

CREATE FUNCTION microsecnow RETURNS INTEGER SONAME 'microsecnow.so';

and the you can do:

mysql> SELECT MICROSECNOW();
+------------------+
| MICROSECNOW()    |
+------------------+
| 1393634420837085 |
+------------------+
1 row in set (0.00 sec)

mysql>