我有 4 张桌子:
table1
id1,
fk_tbl2 //this is the foreign key to the "id" in table2
table2
id2,
fk_tbl3 //this is the foreign key to the "id" in table3
table3
id3,
fk_tbl4 //this is the foreign key to the "id" in table4
table4
id4,
name
我想进行多表连接,当用户输入“id4”时,我可以获得“table1”中的记录列表。
如何在 C# 中编写连接?谢谢。