Uppercase abbreviated Country in MySQL -


i using following code

$wpdb->query( "update $wpdb->usermeta set meta_value = replace(meta_value, 'ontario', 'on')" ); 

it works fine, want know there way can make "on" uppercase in mysql insert?

mysql provides string function upper()

http://dev.mysql.com/doc/refman/5.7/en/string-functions.html#function_upper

it's possible reference function in insert statement.


Comments

Popular posts from this blog

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

javascript - return highlighted cells to php -

java - Creating a room by reading from a file (for a game) -