SQL Server 2005中的递归实现
摘要:
SELECT * INTO t --载入测试数据FROM( SELECT 1 AS ID,'food' AS Product,0 AS ParentID UNION ALL SELECT 2,'sport',0 UNION ALL SELECT 3,'drink',1 UNION ALL SELECT 4,'ball',2 UNION ALL SELECT 5,'f... 阅读全文
posted @ 2004-10-15 17:13 Goodspeed 阅读(2228) 评论(2) 推荐(1) 编辑