摘要:
SELECT object_name(dt.object_id) as 表名,si.name as 索引名称 ,dt.avg_fragmentation_in_percent as 外部碎片,dt.avg_page_space_used_in_percent as 内部碎片FROM( SELECT 阅读全文
摘要:
一、pivot 行转列表结构、create table DailyIncome(VendorId nvarchar(50), IncomeDay nvarchar(50), IncomeAmount int,FacName nvarchar(50))1、使用select sum case when 阅读全文