(1)求平均值
select avg(A+B+C)
(2)字段类型更改
select convert(int,A) //int型
select convert(char(20), B) //字符型
(3)为空字段默认值
select isnull(convert(int,snowdepth),0)
(1)求平均值
select avg(A+B+C)
select convert(int,A) //int型
select convert(char(20), B) //字符型
(3)为空字段默认值
select isnull(convert(int,snowdepth),0)