sql - MySQL Update using Wildcard Replace -


i have table route has names 'sap_eah_in_rfc_gb_wmart' , 'sap_eah_in_rfc_gb_tesco' want changing %eas_in% instead of eah_in. have on 3k of entries. can use following?

update sap_xref  set route = replace(route, 'eah_in', 'eas_in')  route 'sap_eah_in_rfc_%' 


Comments

Popular posts from this blog

cron - how to properly run Python script with crontab on every system startup -

elasticsearch - Is the order of operations guaranteed in a bulk update? -

Slow performance first queries on SQL Azure -