摘要: --调用方法:--select * from GetChild('24')--select id from GetChild('24')--select * from KuCun where ProductType in(select id from GetChild('24'))Create function [dbo].[GetChild](@ID varchar(10))returns @t table(ID varchar(10),ParentID varchar(10),Level int)asbegin declare @i int 阅读全文
posted @ 2011-12-01 09:57 Aaron.Wu 阅读(635) 评论(0) 推荐(0) 编辑