(1)聚合函数 sum,max,min,avg,count (2)日期函数 datediff ,dateadd, datepart,getdate,month,day (3)字符串函数 ltrim,rtrim,len,left,right,substring(索引从1开始),lower,upper (4)数据类型转换函数 cast,convert (5)开窗函数 over=>row_number() over() ,rank() over() partition by 分区 order by …