报错提示是:
ERROR 1064 (42000) at line 642: 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
这个表的sql语句是
 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;

解决方案 »

  1.   

    原因在于 :release  是 Mysql的保留字  你可以改一下 releases。
      

  2.   

    不好意思,导入5.0.27版本没有问题,导入到5.0.22又有个报错,
    ERROR 1292 (22007) at line 1205: Incorrect datetime value: '' for column 'duedat
    e' at row 1又不通用吗,1205段的内容是INSERT INTO tabMemberAccounts ( id , state , balance , graceday , pastdue , ucash , ucredit , purchases , cdeposit , d        uedate ) VALUES ( '1' , '1' , '-1000000.0000' , '7' , '-1000000.0000' , '.0000' , '.0000' , '.0000' , '.0000' , '' );
      

  3.   

    我也出现这个情况,但是我发现要是给datetime赋值就可以插入成功,我也不知道为什么!