Hi,
Is there any way to use recursion in stored procedure, i.e. I want to use stored procedure recursively. How to do this ?
Recursion
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Dec 27, 2011, 6:28 PM EST
Please refer the below link
http://www.techrepublic.com/article/using-recursion-in-stored-procedures/5700193
Thanks
Priya LingeRank #785 · 2.9K reputationPosted Dec 27, 2011, 6:31 PM EST
Please check below link.
http://www.informit.com/articles/article.aspx?p=25288&seqNum=13
http://www.techrepublic.com/article/using-recursion-in-stored-procedures/5700193
Hope this will help you.
Thanks.
Pravin MoreRank #1,419 · 1.2K reputationPosted Dec 27, 2011, 7:00 PM EST
Hello Manoj,
you can use Recursive CTE for it.
Recursive is the process in which the query executes itself. It is used to get results based on the output of base query. We can use CTE as Recursive CTE (Common Table Expression).
Click Here for simple example.
Thanks,
Pravin.