今天在网上下载了一个开源框架,在运行SQL的时候报
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) DEFAULT NULL COMMENT '创建时间',
`UPDATE_TIME` datetime(0) DEFAULT NUL' at line 16
看了半天没有看出半点语法错误,后来发现去掉datetime(0)中的“(0)”,这么低级的错误还找了半天,发个博客给自己点记性!