数据库导表报“NULL DEFAULT CURRENT

it2024-08-01  38

问题:使用Navicat for MySQL导表时出错

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(0) NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加时间',

解决

MySQL版本低更换高的就行,我原来使用的时5.5的,更换为5.7的就行了

最新回复(0)