MySQL Forums
Forum List  »  Stored Procedures

Re: Dynamically Dropping Views in a Stored Procedure
Posted by: Roland Bouman
Date: November 24, 2005 08:11PM

mmm drop works for me, what version are you running:

delimiter //

create view v as select 'v'
//

create procedure p()
drop view v
//

call p()
//

select * from v
//

ERROR 1146 (42S02): Table 'test.v' doesn't exist

so, the view is definely dropped

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Dynamically Dropping Views in a Stored Procedure
1477
November 24, 2005 08:11PM


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.