Re: what is the equivalent to EXEC()
Hi Hugues,
The equivalent of EXEC (MSSQL Server) is Prepared Statements.
e.g.:
DELIMITER $$
DROP PROCEDURE IF EXISTS `sptest`$$
CREATE PROCEDURE `sptest`()
BEGIN
PREPARE stmt1 FROM 'SELECT "ok"';
EXECUTE stmt1;
DEALLOCATE PREPARE stmt1;
END$$
DELIMITER ;
call sptest();
Result:
ok
------
ok
Subject
Views
Written By
Posted
43895
May 07, 2007 06:22AM
Re: what is the equivalent to EXEC()
17895
May 07, 2007 07:34AM
9720
May 07, 2007 08:53AM
6703
May 07, 2007 09:22AM
4033
May 07, 2007 09:37AM
3811
May 07, 2007 08:30PM
3626
May 08, 2007 04:20AM
3844
May 08, 2007 04:29AM
6984
July 30, 2007 08:10AM
4175
July 30, 2007 02:05PM
3902
August 01, 2007 10:06AM
4744
August 02, 2007 10:13AM
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.