0

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 at 17:00
1

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)

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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