Click here to Skip to main content
15,917,859 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello friend,
i want some help from your side.
i know about stored procedure and i am created sp(store procedure) in sql server. But my problem is that i want to create sp(store procedure) in mysql, so kindly inform me where i have to write the sp and how to call that sp in php. right now i use the mysql 5.1.36 and php 5.3.0.


thanks in advance
Posted

Please have a look Here[^]. You will surely get some help.
 
Share this answer
 
Comments
niravbhavsar 9-Apr-12 5:58am    
but where to write this code in sql window? where i write the simple insert,
update query?
You can write this code in any sql tools with little differences:
Here is the example for phpMyAdmin:
SQL
create procedure getStudentById(varId int)
begin
    select * from student where student_id=varId;
end$$

Note: for phpMyAdmin do not forget to change the Delimiter to what you have use in the sql script. In the above case, the Delimiter must be $$.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900