MySQL replace function

--- replace all the characters c in abcd with the number 3

select replace('abcd','c','3') as result;



 

 

--- Replace the record with code='url_white_list' in the table sys_parameters, and replace all ,/, in its field value with,

update sys_parameters set `value`= replace(`value`,',/,',',') where code='url_white_list';

 

 

 

 

 

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326092653&siteId=291194637