I have a MySQL table with over 3 million rows that includes peoples names and the state they are from e.g. “Smith (SC)” I would like to remove the state info and have “Smith”. Since there are many difference last names and states used I was wondering if there was any trick to make this easier and just remove the parentheses and the text contained inside of them.
Any advice would be greatly appreciated.
Test with a select to make sure you’re getting good results:
Once you’re confident in the results: