遞歸小案例(轉載整理)

1.sql語句實現  //獲取所有子級 WITH temps AS ( SELECT * FROM [its].[dbo].[Citys] WHERE areaid = 2 UNION ALL SELECT m.* FROM [its].[dbo].[Citys] AS m INNER JOIN temps AS child ON m.ParentId = child.
相關文章
相關標籤/搜索