I have a large group of columns in a table (50+) which contain some statistics about a game.
We are simplifying our statistics, so now we want to do two things.
- Drop any columns where the name contains ‘%_nd%’
- Remove the string ‘_er’ from any column names.
Is there an easy way to do this automatically, or do I need to enter all the column names manually?
Well you can do the first by running the following and using the SQL it produces:
You could do the second with a similar query: