5个回答
展开全部
select id
from
(
select id
from tableA
order by id
) tab
where rownum=5
from
(
select id
from tableA
order by id
) tab
where rownum=5
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Maybe you can try it below by yourself :
select *
from table
where count (id)=5
If it doesn't work for you, can you tell me the right answer to the question you have got and tried ??
Thanks!!!
select *
from table
where count (id)=5
If it doesn't work for you, can you tell me the right answer to the question you have got and tried ??
Thanks!!!
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
select top 1 * from
(select top 5 * from table order by id) order by id desc
(select top 5 * from table order by id) order by id desc
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
select top 5 * from tb where id not in (select top 4 id from tb order by id)
order by id
order by id
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询