MySQL Forums
Forum List  »  Stored Procedures

Re: Variable Table name in Stored Procedure issue
Posted by: A G
Date: March 10, 2012 04:11AM

Hi Irek,
Firstly, thank you for reading.
I like the method you have mentioned.
However, upon thinking a little, I got to a simple way.
Option 4)
I created a new table name from the incoming unique table name
I then converted all the functions into stored procedures.
The new stored procedure accepts this new table name as an IN param.
These new stored procedures allow dynamic sqls, so changed the hardcoding in the accessing of the variables to dynamic (as compared to the prev. code)

So, in summary, I converted the functions to stored procedures.

Seems to be working as of now. Please feel free to point out any flaw in this method.
Thanks for reading,
Amit

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Variable Table name in Stored Procedure issue
2024
A G
March 10, 2012 04:11AM


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.