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 -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -