PHP Mysql Duplicate Entry Error for Unique Column -


i have ton of data have parse , insert mysql database.

some of duplicate, setup unique index on column needs unique.

instead of running insert queries 1 1, i'm doing batches of 100 lessen load on db. if duplicate entry error, seems entire batch not inserted. there way structure query "if there duplicates ignore please insert rest of data"?

thanks in advance.

you can use ignore keyword that: http://dev.mysql.com/doc/refman/5.5/en/insert.html


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -