mysql - How to replace html symbols via sql query on php -


i have situation have custom field html symbol (‚). when try replace equivalent (,) cannot it...

i'm using sql query:

$wpdb->query ("update $wpdb->postmeta set `meta_value` = replace(`meta_value`, \'%‚ %\') `meta_value` '‚'"); 

what doing wrong?

to convert ‚ comma, use replace below:

select replace(meta_value, '‚', ',') your_table meta_value ',' 

shown select statement testing, actual update:

update set your_table set meta_value = replace(meta_value, '‚', ',') meta_value ',' 

Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -