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
Post a Comment