Welcome Guest, Not a member yet? Register   Sign In
insert_batch() not working completely
#4

(04-19-2017, 08:50 AM)RBX Wrote: That's expected.

Check the MySQL documentation, you can define columns only once.


Code:
INSERT INTO tbl_name (a,b,c) VALUES(1,2,3),(4,5,6),(7,8,9);

Thank you very much for commenting on my query. Hope, You have read my question. So this is not an answer of question.


insert_batch() should work with different keys. It works fine when keys will be same in the array.
Reply


Messages In This Thread
RE: insert_batch() not working completely - by krishnadeveloper - 04-19-2017, 11:49 PM



Theme © iAndrew 2016 - Forum software by © MyBB