Answers for "mysql remove from string"

PHP
3

how to remove characters from string in mysql

#query 
UPDATE tableName SET columnName = REPLACE(columnName, 'charactersToBeReplaced', 'charactersToBeReplacedWith');

#you can use like this
UPDATE student_enroll_data SET student_name = REPLACE(student_name, '-gyg-', '');
Posted by: Guest on May-18-2021
6

mysql replace a character in a string

UPDATE users SET first_name = REPLACE (first_name, 'search', 'replace_with') where id > 0;
Posted by: Guest on June-20-2019
13

mysql replace

REPLACE(str, find_string, replace_with)
Posted by: Guest on May-26-2020

Code answers related to "mysql remove from string"

Browse Popular Code Answers by Language