Home Sql SQL Out Parameter
Questions:Ask|Latest

 
 

Share on Google+Share on Google+

SQL Out Parameter

Advertisement
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   |
+------+
Advertisements

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: December 20, 2008

Related Tutorials

Ask Questions?    Discuss: SQL Out Parameter  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
DMCA.com