史上最强的数据分页方法

warran 2004-02-03 05:13:54
原文见:

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的不同之处是什么?
...全文
36 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧