Congratulations to all monthly winners of May 2013 !!! They have won INR 2900 cash and INR 27497 worth prize.
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 15598 |  Welcome, Guest!   Register  Login
 Home > Forums > Others > how to alter stored procedure in mysql ...
Shanky11

how to alter stored procedure in mysql

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


how to alter stored procedure in mysql
create PROCEDURE detail
(
IN id int,
OUT sname varchar(50)
)
BEGIN
select name into sname FROM student where sid=id;
END


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:10:06 AM
Level: Starter | Status: [Member] | Points: 25

MySQL provides an ALTER PROCEDURE statement to modify a routine, but only allows for the ability to change certain characteristics. If you need to alter the body or the parameters, you must drop and recreate the procedure.

eg:drop procedure if exists detail;


and recreate the procedure as you want

mahesh

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

Reply - Please login to reply


Click here to login & reply

Found interesting? Add this to:


 Latest Posts

Write New Post | More ...

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. | 6/19/2013 6:30:52 PM