MySQL Forums
Forum List  »  Spanish

Re: Problema con un procedure
Posted by: William Chiquito
Date: August 03, 2007 06:34AM

Hola Andres,

Mi ejemplo funciona correctamente. Estoy usando la versiĆ³n 5.0.45-community-nt de MySQL.
DELIMITER $$

DROP PROCEDURE IF EXISTS `P7`$$

CREATE PROCEDURE `P7`(p INT)
BEGIN
	SET @x=p;
END$$

DELIMITER ;

SET @x = NULL;
SELECT @x;
Result:
@x    
------
(NULL)

CALL P7(1234);
SELECT @x;
Result:
@x    
------
1234



Edited 1 time(s). Last edit at 08/03/2007 06:36AM by William Chiquito.

Options: ReplyQuote


Subject
Views
Written By
Posted
2842
August 02, 2007 05:13PM
Re: Problema con un procedure
1885
August 03, 2007 06:34AM


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.