Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Quartz SQL Out Parameter

Related Tutorials


 
 

Share on Google+Share on Google+

SQL Out Parameter

Advertisement
This page discusses - SQL Out Parameter

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

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: April 18, 2011

Related Tutorials

Discuss: SQL Out Parameter  

Post your Comment


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