Congratulations to all the winners of April 2013, they have won INR 3400 cash and INR 20147 worth prizes !
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 15818 |  Welcome, Guest!   Register  Login
 Home > Forums > Others > how to call stored procedure in mysql ...
Shanky11

how to call stored procedure in mysql

Replies: 2 | Posted by: Shanky11 on 8/25/2012 | Category: Others Forums | Views: 364 | Status: [Member] | Points: 10  


how to call out parameterized stored procedure in mysql
DROP PROCEDURE IF EXISTS details;
create PROCEDURE detail1
(
IN id int,
OUT sname varchar(50)
)
BEGIN
set sname=(SELECT name FROM student where sid =id);
END
call detail1(3,'sname');


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Maheshvishnu
Maheshvishnu  
Posted on: 8/31/2012 1:03:11 AM
Level: Starter | Status: [Member] | Points: 25

call detail1(3,@sname)

select @sname;

mahesh

Shanky11, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Shanky11
Shanky11  
Posted on: 8/31/2012 3:17:33 AM
Level: Starter | Status: [Member] | Points: 25

its not working

Shanky11, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/19/2013 8:31:15 AM