Changinge case of tablenames inside stored procedure of mysql
I am here to change the uppercase table name present in the stored procedures. I have got nearly 100 stored procedures. is there any shortcut way so that i can change all the uppercase table names to lowercase within short time...
I suppose you could mysqldump the procedures and triggers, something like this:
mysqldump --routines --no-create-info --no-data --no-create-db --skip-opt <database> > outputfile.sql
Then do your find/replace with uppercase on that dump file and then reload the procedures/triggers back into your DB.
I would write something that would iterate through some folder (where these files are) then change the case to what you needed it to be. I'm not exactly sure why you want to change the case though.
精彩评论