MySQL Forums
Forum List  »  Stored Procedures

Dynamically Dropping Views in a Stored Procedure
Posted by: Cornelius Sybrandy
Date: November 21, 2005 11:04AM

I'm trying to build a stored procedure that will drop and recreate views whenever it is run. The reasoning, just to give a bit of background, is that the view columns may change depending on the data. My plan was to store the view definitions in a table and use that to drop/recreate the views. However, I apparently cannot use a drop statement in a prepared statement. Is there another way to do this?

Options: ReplyQuote


Subject
Views
Written By
Posted
Dynamically Dropping Views in a Stored Procedure
1864
November 21, 2005 11:04AM


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.