Transform MySQL 'update' statements to 'insert' statements -


i have 11mb dump containing update statements, formatted this:

update `table` set `id` = 1,`field`='etc' `table`.`id` = 1; 

however, need insert these values new database, using statements this:

insert `table` (`id`, `field`) values ('etc', 1); 

has written tool or service convert update statements insert statements? (at first glance, seems beyond reach of regex)

lazy approach. if have ids, insert no matter id's , after run updates.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -