How to remove some part of rows from column in mysql? I have a column like this

enter image description here

my desire output is like this

enter image description here

  • GIGO. The best time to deal with such is to split up the data before inserting it. – Rick James Feb 6 '19 at 17:00

Fairly easy with a couple of string functions ... change test to the name of your table of course.

update `test` set bfi_name = substr(bfi_name,instr(bfi_name,' ')+1)
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.