MySQL Forums
Forum List  »  Stored Procedures

Changing parameter name of SPs
Posted by: Chagh
Date: August 24, 2005 03:27AM

hi all,
how can i change the parameters name of my SPs? (not manually be editing the SP).
e.g. i want to change all parameters of all my SPs from the format "var_foo" to "p_foo".

i tried backing up mysql.proc table with mysqldump and change the names in a text editor by replacing "var_" by "p_". but i can not restore it now and it gives me such an error:"ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the ma
nual that corresponds to your MySQL server version for the right syntax to use n
ear 'n++
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */' at line 1"

What is an easy and not-time-consuming way to do this?

Thanks in advance
Chagh

Options: ReplyQuote


Subject
Views
Written By
Posted
Changing parameter name of SPs
3164
August 24, 2005 03:27AM
1870
August 25, 2005 11:52AM
1895
August 29, 2005 10:38PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.