摘要: ALTER FUNCTION [dbo].[parseJSON]( @JSON NVARCHAR(MAX))RETURNS @hierarchy TABLE ( element_id INT IDENTITY(1, 1) NOT NULL, /* internal surrogate primary 阅读全文
posted @ 2016-04-13 18:06 595824023 阅读(922) 评论(0) 推荐(0) 编辑
摘要: select * from (select borrowId,month(repayDate) months , hasPI from t_repayment) as ord pivot(sum(hasPI) for months in([12],[1],[2],[3]))as p 阅读全文
posted @ 2016-04-13 11:19 595824023 阅读(100) 评论(0) 推荐(0) 编辑