USE [test] GO /****** Object: StoredProcedure [dbo].[p05_get_group_member_cleared] Script Date: 2019/7/8 15:32:01 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROC [dbo].[p05_get_group_member_cleared] AS --s5,提取未被包含过组的成员,得出结论 BEGIN…
USE [test] GO /****** Object: StoredProcedure [dbo].[p04_get_groupno_cleared] Script Date: 2019/7/8 15:03:02 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROC [dbo].[p04_get_groupno_cleared] AS --s4,对被包含过的组进行清理,只保留未被包含过的组 BEGIN IF O…
USE [test] GO /****** Object: StoredProcedure [dbo].[p02_get_group_member] Script Date: 2019/7/8 14:58:03 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROC [dbo].[p02_get_group_member] AS --s2,提取s1中担保圈路径中的成员 BEGIN IF OBJECT_ID(N'dbo…
USE [test]; GO /****** Object: UserDefinedFunction [dbo].[f_findrecycle] Script Date: 2019/7/8 14:37:08 ******/ SET ANSI_NULLS ON; GO SET QUOTED_IDENTIFIER ON; GO ALTER FUNCTION [dbo].[f_findrecycle] ( ), --起点 @nlevel INT --递归的层数 ) RETURNS TABLE AS R…
USE [test] GO /****** Object: StoredProcedure [dbo].[p01_get_group_path] Script Date: 2019/7/8 14:40:47 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROC [dbo].[p01_get_group_path] AS --s1,获取担保圈路径 IF OBJECT_ID(N'dbo.t01_get_group_pa…
USE [test] GO /****** Object: StoredProcedure [dbo].[p03_get_groupno_e2] Script Date: 2019/7/8 15:01:22 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROC [dbo].[p03_get_groupno_e2] AS BEGIN --s3,比较各组的成员,对组进行清理,具体见程序的注释 SET STATISTIC…
USE [test] GO /****** Object: UserDefinedFunction [dbo].[tf_split_char] Script Date: 2019/7/8 14:39:15 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER FUNCTION [dbo].[tf_split_char] ( @cstring NVARCHAR(MAX), --被拆分的字符串 ) --分隔符 ) RETURNS…