看起来您不能在InfiniDB中使用timepstamp数据类型。我有同样的版本@mhoglan但它似乎有在该查询出一点差错:
mysql> create table test (`CREATE_TIMESTAMP` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP);
Query OK, 0 rows affected (0.00 sec)
是缺少“发动机= infinidb;”在最后,这将在infinidb中创建表。 相反,该表是使用MySQL的默认引擎(MyISAM或其中任意一个)创建的。
mysql> create table test (`CREATE_TIMESTAMP` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP) engine=infinidb;
ERROR 138 (HY000): The syntax or the data type(s) is not supported by InfiniDB. Please check the InfiniDB syntax guide for supported syntax or data types.
正如您所看到的,添加engine = infinidb失败。
如果您可以使用日期时间,可能是要走的路;时间戳目前似乎不支持:(