I was a bit wrong in my previous post. MySQL 5.6 does allow you
to supply a fsp with CURRENT_TIMESTAMP (thanks Roy).
mysql> SELECT CURRENT_TIMESTAMP,CURRENT_TIMESTAMP(6);
+---------------------+----------------------------+
| CURRENT_TIMESTAMP | CURRENT_TIMESTAMP(6) |
+---------------------+----------------------------+
| 2013-10-27 10:38:59 | 2013-10-27 10:38:59.182530 |
+---------------------+----------------------------+
1 row in set (0.00 sec)
It however feels a bit weird to me as the CURRENT_TIMESTAMP is
often used without () and doesn't look like a function. So when I
tried to use a CURRENT_TIMESTAMP with a fsp of 6 it was not
behaving how I expected it to be:
mysql> CREATE TABLE t1 (ts TIMESTAMP DEFAULT CURRENT_TIMESTAMP(6));[Read more]
ERROR 1067 (42000): Invalid …