Home Sql SQL Out Parameter



SQL Out Parameter
Posted on: December 20, 2008 at 12:00 AM
SQL Out Parameter allows the stored procedure to the pass data value back to the invoker.

SQL Out Parameter

     

SQL Out Parameter allows the stored procedure to the pass data value  back to the invoker.

Understand with Example

The Tutorial illustrate an example from SQL Out Parameter .In this Example we create a procedure 'abc'. The parameter taken into the procedure is OUT parameter. The OUT parameter  allows the stored procedure to pass the value and pass back to the invoker.

Create Procedure

delimiter $$
create procedure abc(OUT x int)
BEGIN 
	SET x = 10;
END$$
delimiter ;

Call Procedure

call abc(@y);

Fetch Value

Select @y;

Result

+------+
| @y   |
+------+
| 10   |
+------+

Related Tags for SQL Out Parameter:
sqlcdatavalueparameterinvoketoramstoreprocwsebackprocedureceinpassasmoutparallmeproparamackstoredtorsatkllmeterduarvassrocthstalupro


More Tutorials from this section

Ask Questions?    Discuss: SQL Out Parameter  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.