bulk insert mysql - can i use ignore clause? is there a limit to no. of records for bulk insert?
问题 I have a bunch of data that i want to insert and i have decided to use bulk insert for mysql. insert into friends (requestor, buddy) values (value1, value2), (value2, value1), (value3, value4), (value4, value3), ... i would like to know the following: 1) can i use ignore? eg insert ignore into friends (requestor, buddy) values (value1, value2), (value2, value1), (value3, value4), (value4, value3), ... what happens if i have duplicate? will it a) not insert everything? b) insert the records