mysql - ON DUPLICATE update nothing -


i know can use update ignore pass on whether there duplicate key. how use following syntax same?

insert table on duplicate key *do nothing* 

you exact same way.

insert ignore table .... 

that silently skip constraint violations. bulk insert (eg insert ignore table select ... ...), skip rows violate constraint, continue insert rows can be.

useful duplicate removal.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -