insert into html_data (cat,content,posted,title,link,description,images1,images2,images3,pubdate) values ('中文','中文','now()','中文','','中文','','','','2007-02-05 16:46:19')Error Code : 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 ''2007-02-05 16:' at line 1
(0 ms taken)是个语法错误,奇怪了

解决方案 »

  1.   

    字段类型?另外now()的时候不需要加''
      

  2.   

    to yangxiao_jiang(哈哈) ,还是不行,好像不是这个的事儿。insert into html_data (cat,content,posted,title,link,description,images1,images2,images3,pubdate) values ('中文','中文',now(),'中文','','中文','','','','2007-02-05 16:46:19')Error Code : 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 ''2007-02-05 16:' at line 1
    (0 ms taken)
      

  3.   

    表结构如下:Field        Type          Null    Key     Default  Extra           Privileges                     
    -----------  ------------  ------  ------  -------  --------------  -------------------------------
    id           int(11)               PRI     (NULL)   auto_increment  select,insert,update,references
    cat          varchar(100)                                           select,insert,update,references
    content      text          YES             (NULL)                   select,insert,update,references
    posted       varchar(50)   YES             (NULL)                   select,insert,update,references
    title        varchar(200)  YES             (NULL)                   select,insert,update,references
    link         varchar(200)  YES             (NULL)                   select,insert,update,references
    description  text          YES             (NULL)                   select,insert,update,references
    images1      varchar(200)  YES             (NULL)                   select,insert,update,references
    images2      varchar(200)  YES             (NULL)                   select,insert,update,references
    images3      varchar(200)  YES             (NULL)                   select,insert,update,references
    pubdate      datetime      YES             (NULL)                   select,insert,update,references