Cara cepat mengganti sebuah kata / bagian kalimat yang tercatat dalam suatu record, biasanya record yang bersifat string panjang (ie: urlencoded json parameters )
UPDATE
<table_name>
SET
<column_name> = REPLACE( <column_name>, 'text to find', 'text to replace with')
WHERE
<column_name> LIKE'%text to find%';
Source From :
https://www.codegrepper.com/code-examples/sql/mysql+update+replace+string
Tidak ada komentar:
Posting Komentar