开发者

Changinge case of tablenames inside stored procedure of mysql

开发者_如何学JAVA

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜