建表报错

这种字段属性是在 v3.0.2 版本之后被禁止的,具体可见 github pr:

https://github.com/pingcap/tidb/pull/11480

可以修改成:dtmodify datetime(3) not null default current_timestamp(3) on update current_timestamp(3)的形式