cómo aplicar la relación padre-hijo en mi sitio web a través de sql

scenario is like


  parent                  child
    100                      101
    100,101                  102
    100,101,102              103

i have a problem i have chaining system in my asp.net website,when a record has inserted each time it's parent is selected by dropdown list, i want it'll go to various level it's parent of parent's will be concatenated thru sql. please tell me how to design stored procedure for this chaining. Thanks in adv

preguntado el 27 de noviembre de 13 a las 05:11

Schema/sample data would go a long way toward making this question clearer. -

i means every time when record insert it' s all grand parent add to its parent name -

so child column is updated with the selected value from the dropdown list and the parent column updates with all the parent names in order? -

0 Respuestas

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.