查找担保圈-step5-比较各组之间的成员,对组的包含性进行查询,具体见程序的注释-版本1

摘要: 1 USE [test] 2 GO 3 /****** Object: StoredProcedure [dbo].[p03_get_groupno_e1] Script Date: 2019/7/8 14:59:39 ******/ 4 SET ANSI_NULLS ON 5 GO 6 SET Q 阅读全文
posted @ 2019-07-08 15:00 hold_on_up 阅读(136) 评论(0) 推荐(0) 编辑

查找担保圈-step4-提取s1中担保圈路径中的成员

摘要: 1 USE [test] 2 GO 3 /****** Object: StoredProcedure [dbo].[p02_get_group_member] Script Date: 2019/7/8 14:58:03 ******/ 4 SET ANSI_NULLS ON 5 GO 6 SET 阅读全文
posted @ 2019-07-08 14:59 hold_on_up 阅读(147) 评论(0) 推荐(0) 编辑

查找担保圈-step3-获取担保圈路径

摘要: 1 USE [test] 2 GO 3 /****** Object: StoredProcedure [dbo].[p01_get_group_path] Script Date: 2019/7/8 14:40:47 ******/ 4 SET ANSI_NULLS ON 5 GO 6 SET Q 阅读全文
posted @ 2019-07-08 14:42 hold_on_up 阅读(118) 评论(0) 推荐(0) 编辑

查找担保圈-step2-拆分成员表函数

摘要: 1 USE [test] 2 GO 3 /****** Object: UserDefinedFunction [dbo].[tf_split_char] Script Date: 2019/7/8 14:39:15 ******/ 4 SET ANSI_NULLS ON 5 GO 6 SET QU 阅读全文
posted @ 2019-07-08 14:40 hold_on_up 阅读(125) 评论(0) 推荐(0) 编辑

查找担保圈-step1-担保圈表函数

摘要: 1 USE [test]; 2 GO 3 /****** Object: UserDefinedFunction [dbo].[f_findrecycle] Script Date: 2019/7/8 14:37:08 ******/ 4 SET ANSI_NULLS ON; 5 GO 6 SET 阅读全文
posted @ 2019-07-08 14:39 hold_on_up 阅读(198) 评论(0) 推荐(0) 编辑

统计sql server 2012表的行数

摘要: --功能:统计sql server 2012表的行数 SELECT a.name, a.object_id, b.rows, b.index_id FROM sys.tables AS a INNER JOIN sys.partitions AS b ON a.object_id = b.objec 阅读全文
posted @ 2019-07-04 15:55 hold_on_up 阅读(327) 评论(0) 推荐(0) 编辑

t-sql最短路径搜索

摘要: 1 SET STATISTICS IO ON; 2 SET STATISTICS TIME ON; 3 GO 4 IF OBJECT_ID(N'dbo.t1') IS NOT NULL 5 DROP TABLE dbo.t1; 6 GO 7 CREATE TABLE t1 8 ( 9 id INT 阅读全文
posted @ 2019-06-28 17:40 hold_on_up 阅读(188) 评论(0) 推荐(0) 编辑