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

serialization - Convert Any type in scala to Array[Byte] and back -

Slow performance first queries on SQL Azure -

Java Entity Manager - JSON reader was expecting a value but found 'db' -