Is there a mysql query to find and replace parts of field names?
I know you can do that within the actual data using
update [table_name]
set [field_name] = replace([field_name],'[string_to_find]','[string_to_replace]');
... but how do you do that for the actual field names?
I have some fields with a -
in the name, and I'd like to replace them all with a _