MYSQL: Update replace on 2million records -


ok have on 2 million phone numbers in 1 table , need remove spaces phone field.

i have index phone field , optimised table still when run following query slow , takes forever - in fact still waiting , 30minutes have past

update actnsw set phone = replace(phone, ' ', ''); 

i need know if there away speed process not take long.

database scheeme using innodb server version: 5.5.31-1 (debian)

this basic sql query . can't can 1 thing don't run update
query whole table . make multiple update queries ..

update actnsw set phone = replace(phone, ' ', '') id < .2 milian update actnsw set phone = replace(phone, ' ', '') id < .4 milian , id > .2 milian update actnsw set phone = replace(phone, ' ', '') id > .5 milian , id > .4 milian .... 

i think .


Comments

Popular posts from this blog

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -