27,579
社区成员
发帖
与我相关
我的任务
分享
Select top 1 *,10 as fid from (
Select top 10 * from wubw where wNum=3
Order by ID ) t Order by ID desc
select * from wubw a
where wNum=3 and (select count(1) from wubw where wNum=3 and ID<=a.ID)=10
select *,
10 as fid
from wubw a
where (select count(*) from
(select * from wubw where wNum=3) s
where ID <=a.ID)=10
select *,10
from wubw a
where (select count(1) from
(select ID from wubw where wNum=3) s
where ID <=a.ID)=10
select *,10
from wubw a
where (select count(1) from
(select 1 from wubw where wNum=3) s
where ID <=a.ID)=10
select *,10
from wubw a
where (select count(*) from
(select * from wubw where wNum=3) s
where ID <=a.ID)=10