用MySQL碰到一个问题!
在MySQL5.0.33版本下,建表,
CREATE TABLE tabNotices(
id bigint NOT NULL AUTO_INCREMENT ,
state int NOT NULL ,
release datetime NOT NULL ,
subject varchar( 50 ) NOT NULL ,
content text NOT NULL ,
PRIMARY KEY ( id )
) TYPE = MYISAM ;
一运行到release datetime NOT NULL ,这里就报错,
#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 'release datetime NOT NULL ,
subject varchar (50) NOT NULL ,
content text NOT' at line 4
把这一句屏蔽掉就可以顺利运行。
那位兄弟知道怎么回事? |