我有以下数组用于使用 Codeigniter 的 insert_batch 插入数据库。
Array
(
[td_customer_lphone] => Array
(
[0] => Array
(
[cust_lphone_id] =>
[l_ph_cc] => +98
[l_ph_ac] => 777
[l_ph_no] => 77
)
[1] => Array
(
[cust_lphone_id] =>
[l_ph_cc] => +78
[l_ph_ac] => 66
[l_ph_no] => 66
)
)
插入时出现以下错误。
Error Number: 1054
Unknown column '0' in 'field list'
INSERT INTO `td_customer_lphone` (`0`, `1`) VALUES ('',''), ('+98','+78'), ('777','66'), ('77','66')
我究竟做错了什么
谢谢你的帮助..