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
好的我明白了,謝謝。 –