MySQL Forums
Forum List  »  Stored Procedures

Procedure That Can Create Another Procedure
Posted by: Steven Y
Date: November 04, 2015 12:19PM

Is it possible to create a procedure that is capable of creating a second procedure? Something like the code below? I can't seem to find a delimiter configuration that will allow me to do it.

delimiter $$

create procedure outer_proc()
begin

do stuff;

delimiter //

create procedure inner_proc()
begin
do inner proc stuff;
end//

delimiter ;

do more stuff;

end$$

delimiter ;

Options: ReplyQuote


Subject
Views
Written By
Posted
Procedure That Can Create Another Procedure
1885
November 04, 2015 12:19PM


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.