郑文 发表于 2012-12-20 01:11
select * from
(SELECT Id ,Name, Age,row_number() over(order by id) as rownum
FROM table) as t
苏波 发表于 2012-12-20 12:31
select top 10* from Table
where Id not in (select top 30 Id from Table orderby Age desc)
oerder by ...
唐海军 发表于 2012-12-20 14:02
select top 10 * from T_user
where id not in (select top 30 * from T_user order by id desc)//先查出前 ...
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |