史上最强的数据分页方法
原文见:
http://www.pconline.com.cn/pcedu/empolder/wz/asp/10311/248396.html
其中有多处不明,请前辈指点.
引用
========================================================================
select * from
(
select * from (select top 20*4 唯一ID,其他字段 from 表集 where 条件 order by 排序) as a
union all
select * from (select top 20*5 唯一ID,其他字段 from 表集 where 条件 order by 排序) as b
)
a
group by 唯一ID,其他字段 having count(唯一ID)=1 order by 排序
========================================================================
问题1:
as a 和 as b 是什么意思? as的用法....?
问题2:
having的作用?与where的不同之处是什么?