You need to be at MySQL version 5.6.4 or later to declare columns with fractional-second time datatypes.
For example, DATETIME(3)
will give you millisecond resolution in your timestamps, and TIMESTAMP(6)
will give you microsecond resolution on a *nix-style timestamp.
Read this: http://dev.mysql.com/doc/refman/5.6/en/fractional-seconds.html
NOW(6)
will give you the present time with microsecond precision, and NOW(3)
will do the same with millisecond precision.
If your server gives you a bunch of different six-digit integers back when you issue this query a bunch of times, you're at a working version.
SELECT MICROSECOND(CAST(NOW(6) AS DATETIME(6)))
If you get an error, you're not at the right version.