SQLServer 随笔
1. 将多个字段连接在一起
select RTRIM(a)+RTRIM(b) ab,RTRIM(b)+RTRIM(c) bc,d from testTB
2. group by 两个或以上
select a,b,COUNT(c) from testTB group by a,b
1. 将多个字段连接在一起
select RTRIM(a)+RTRIM(b) ab,RTRIM(b)+RTRIM(c) bc,d from testTB
2. group by 两个或以上
select a,b,COUNT(c) from testTB group by a,b