{"id":12182,"date":"2022-05-11T03:56:20","date_gmt":"2022-05-11T07:56:20","guid":{"rendered":"http:\/\/local.brightwhiz\/?post_type=snippets&p=12182"},"modified":"2022-05-11T03:56:23","modified_gmt":"2022-05-11T07:56:23","slug":"mysql-remove-character-from-string","status":"publish","type":"snippets","link":"http:\/\/local.brightwhiz\/snippets\/mysql-remove-character-from-string\/","title":{"rendered":"Remove Character From String in MySQL Code"},"content":{"rendered":"\n
Use this snippet to remove character from string.<\/p>\n\n\n\n
Query format:<\/p>\n\n\n\n
UPDATE tableName SET columnName = REPLACE( columnName, 'charactersToBeReplaced', 'replacementCharacters' );<\/code><\/pre>\n\n\n\nExample:<\/p>\n\n\n\n
; first_name is 'Tomny'\n\nUPDATE users SET first_name = REPLACE( first_name, 'n', 'm' ) WHERE id > 0;\n\n; result: first_name is now 'Tommy' <\/code><\/pre>\n","protected":false},"comment_status":"open","ping_status":"closed","template":"","meta":[],"categories":[953,25,15,16],"tags":[954,177,180,433,449,544],"yoast_head":"\nMySQL Remove Character From String Example<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n