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

many to many - Django Rest Framework ManyToMany filter multiple values -

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

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