Back in 2005 a user requested on the MySQL bug tracker that the TIME/DATE based data types store microseconds. I personally don’t think this is an unreasonable request and judging by the many posts to the bug report by users between then and now this is something quite a few people would like to see.
In Drizzle we asked ‘What if…‘ and Brian came up with the answer. We now (in trunk and in next week’s release) have TIMESTAMP and NOW() with microsecond precision.
To create a TIMESTAMP column that uses microseconds you simply need to specify TIMESTAMP(6) in your table definition, for example:
CREATE TABLE `t1` ( `a` INT DEFAULT NULL, `b` TIMESTAMP(6) NULL DEFAULT NULL ) ENGINE=InnoDB…[Read more]