【发布时间】:2014-03-23 13:36:44
【问题描述】:
我有这样的疑问
INSERT IGNORE INTO 2_1_accountsforpaidused (DebtorDebtAndPayment) VALUES (?,?);
还有这样的价值观
Array
(
[0] => 111
[1] => 222
)
想要在DebtorDebtAndPayment 列中插入VALUES (111,222)。在一行111,在下一行222
但是得到这样的错误
错误 stmt_for_insert_accountsforpaidused!:SQLSTATE[21S01]:插入值列表与列列表不匹配:1136 列计数与第 1 行的值计数不匹配
试图将查询更改为INSERT IGNORE INTO 2_1_accountsforpaidused (DebtorDebtAndPayment) VALUES ((?),(?)); 相同的结果
怎么了?
【问题讨论】:
标签: mysql sql insert syntax-error sql-insert