Rownumber()top 分页查询,rownumber()查询效率更高
between and(含有边界)、in
空值处理 isnull
count()
avg(price) avg(isnull(price,0))将0赋给null
distinct 排除重复数据
索引
连接查询Join 内连接 inner Join
外连接
分清楚是依据左还是右取出数据
Rownumber()top 分页查询,rownumber()查询效率更高
between and(含有边界)、in
空值处理 isnull
count()
avg(price) avg(isnull(price,0))将0赋给null
distinct 排除重复数据
索引
连接查询Join 内连接 inner Join
外连接
分清楚是依据左还是右取出数据