Forums | Webyog
Tools to manage and monitor MySQL databases
forums › forums › SQLyog › Using SQLyog › delete n ammend data
UPDATE my_table SET my_field=INSERT(my_field, (INSTR(my_field, '-'), 1,'');
INSERT function will replace '-' character with '' (empty string) at its first occurance(INSTR locates the first occurance) in my_field.
If you want to replace more than one occurances of '-' character, then use REPLACE() function insted of INSERT().