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