pankaj1990 Posted December 17, 2015 Share Posted December 17, 2015 If i want to write following condition begin if a=2 then declare c cursor for select name from student where id=2; else declare c cursor for select name from student where id=4; end if; ####Process above cursor#### Open c; fetch data; close c; end; But it giving error Quote Link to comment https://forums.phpfreaks.com/topic/299798-how-to-implement-reference-cursor-in-mysql/ Share on other sites More sharing options...
doni49 Posted December 27, 2015 Share Posted December 27, 2015 What is the error? Quote Link to comment https://forums.phpfreaks.com/topic/299798-how-to-implement-reference-cursor-in-mysql/#findComment-1528691 Share on other sites More sharing options...
BenWiliams Posted January 19, 2016 Share Posted January 19, 2016 (edited) Hi I have advertising agency management software and I need help with my mysql. I have advertising and customer base which continues to grow, can I update my database automatically? Edited January 20, 2016 by Barand remove link Quote Link to comment https://forums.phpfreaks.com/topic/299798-how-to-implement-reference-cursor-in-mysql/#findComment-1530057 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.