摘要:
declare @a decimal(15,4) set @a=.1234 select cast(cast(@a*100 as varchar)as varchar)+'%' select cast(cast(str(@a*100,5,2) as varchar)as varchar)+'%' 1 阅读全文
摘要:
SQLSERVER中按年月分组 一个表有三个字段id,dt,d 分别存放id,时间,数值 id dt d 1 2004-08-11 12:12:00.000 9 2 2005-09-11 12:08:00.000 2 3 2005-08-11 12:12:00.000 6 4 2005-09-11 阅读全文