question

Vinita avatar image
Vinita asked

Stored Procedure- I need to write a stored procedure to fetch and update multiple DB rows at one shot based on a certain value and it should happen recursively

Stored Procedure- I need to write a stored procedure to fetch and update multiple DB rows at one shot based on a certain value and it should happen recursively.

For Example- i will have 2 values as my where inputs:

and this will be the outcome of that inputs:

Level 1 - there is a date value in this which has been modified, now when this is modified a loop will start:

level 1 - updated from UI

level 1- level 1.1, level 1.2

level 1.1 - level 1.1.1, levele 1.1.3,

level 1.2 - level 1.2.1, level 1.2.3, level 1.2.3

This will continue till all the values in this tree are updated.

updatestored procedure
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Kev Riley avatar image Kev Riley ♦♦ commented ·

It might help if you could post some sample table structures, data and expected output

0 Likes 0 ·

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.