0
查询语法如下:问题而在一个MySQL的插入多行列 - PHP
INSERT INTO sent (username,password) VALUES
('user','user2','user3','user4','user5','user6'),
('pass','pass2','pass3','pass4','pass5','pass6')
资源:http://dev.mysql.com/doc/refman/5.5/en/insert.html
的mysql_error()总是向我展示这一点:
Column count doesn't match value count at row 1
我不知道该怎么办。现在是时候向你询问这个问题了。
在这种情况下我在每列6个值来插入,我有两列进行操作。 –
您需要将其格式化为INSERT INTO表(field1,field2)VALUES('user','pass'),('user2','pass2')'等等 – andrewsi
好的我明白了,谢谢。 –