MySQL修改数据类型出错“check the manual that corresponds to your MySQL server version for the right syntax to use near ……”解决办法
今天把MySQL的数据类型从int改为timestamp的时候遇到了以下错误:#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 '(11) NOT NULL' at line 1
网上教程都是说我在名称里使用了保留字,可是我翻来覆去看了半天——不可能有保留字啊!
直到我看到了11。。。
timestamp不应该有长度的啊!
把长度11删掉即解决。