运行插入语句时出现mysql错误。错误是:MYsql插入语句错误
#1136 - 列数并不在第1行中的插入5个值相匹配的值数,但评论ID设置为AUTO INC
插入语句看起来像这样:
insert INTO comments (post_id, comment_name, comment_email, comment_text, status) VALUES ('78', 'm man', '[email protected]', 'testh' 'unapprove')
的表看起来像这样
1) comment_id int(10) AUTO_INCREMENT 2) post_id int(10) 3) comment_name varchar(100) 4) comment_email varchar(100) 5) comment_text (text) 6) status (text)
任何人都可以 帮帮我?非常感谢您的努力
你缺少值子句中的一个逗号。 – thebjorn 2014-08-31 09:53:19