MySQL Forums
Forum List  »  Microsoft SQL Server

Re: Calling stored procedures from other stored procedures. Possible?
Posted by: Roland Bouman
Date: August 26, 2005 02:18AM

use test;

delimiter $$

create procedure p_callee()
begin
select 'callee';
end;
$$

create procedure p_caller()
begin
select 'calling';
call p_callee();
select 'called';
end;
$$

mysql> call p_caller();
-> $$
+---------+
| calling |
+---------+
| calling |
+---------+
1 row in set (0.00 sec)

+--------+
| callee |
+--------+
| callee |
+--------+
1 row in set (0.00 sec)

+--------+
| called |
+--------+
| called |
+--------+
1 row in set (0.00 sec)

Query OK, 0 rows affected (0.00 sec)

Options: ReplyQuote


Subject
Written By
Posted
Re: Calling stored procedures from other stored procedures. Possible?
August 26, 2005 02:18AM


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.