我如何添加子项dyanamicaly [英] How i can add subchild dyanamicaly
本文介绍了我如何添加子项dyanamicaly的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Parent table
============
parent_id int
parent_name varchar(50)
Child table
============
parent_id int
Child_id int
child_name varchar(50)
subhild table
============
parent_id int
Child_id int
subchild_name varchar(50)
.............................
我有树表,您能告诉我如何添加subchild
i have tree table can you please tell me how i add subchild
推荐答案
这不是C#问题.在我看来,它看起来像SQL,但要准确地说出您想要的是非常困难的.
据我所知,您在SQL中无法拥有子表".
This is NOT a C# question. It looks like SQL to me, but it''s really hard to tell exactly what you want.
You can''t have "child tables" in SQL as far as I know.
请您详细说明一下问题....
看起来像是同时不是SQL的SQL
Could you please elaborate the question....
It looks like SQL at the same time not SQL
INSERT INTO subchild
(column-1, column-2, ... column-n)
VALUES
(value-1, value-2, ... value-n);
这篇关于我如何添加子项dyanamicaly的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文