摘要:
--【提取中文】IF OBJECT_ID('dbo.fun_getCN') IS NOT NULLDROP FUNCTION dbo.fun_getCNGOcreate function dbo.fun_getCN(@str varchar(4000))returns varchar(4000)as 阅读全文
摘要:
select case when grouping(姓名)=1 then '合计' else cast(姓名 as varchar) end 姓名, case when grouping(学期)=1 and grouping(姓名)=0 then '姓名小计' else cast(学期 as var 阅读全文
摘要:
CREATE TABLE #tb( lh VARCHAR(10)) INSERT INTO #tb SELECT '12-1-2202' union all SELECT '12-1-2301' union all SELECT '12-1-2302' union all SELECT '12-1- 阅读全文
摘要:
1.查看执行时间和cpu占用时间 set statistics time on select * from dbo.Product set statistics time off 打开你查询之后的消息里面就能看到啦。 2.查看查询对I/0的操作情况 set statistics io on sele 阅读全文