#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-', '');