大量散分.
10 个解决方案
#1
select top 3 * FROM YOURTABLE WHERE ID NOT IN (SELECT TOP 3 ID FROM YOURTABLE)
#2
select top 3 * from ( select top 5 * from table1 order by 顺序)order by 降序
#3
upup
#4
可以试试:
select * from table
where col in (select top 5 col from table) and
col not in (select top 2 col from table)
select * from table
where col in (select top 5 col from table) and
col not in (select top 2 col from table)
#5
如果这个表不存在primary key,则应该是:
表employee包括字段:name, address
-------------------------------------------
select IDENTITY(int,1,1) AS ID_Num, employee.* into #t from employee
select name,address from #t where ID_Num not in(select top 3 ID_Num from #t) and ID_Num in(select top 5 ID_Num from #t)
drop table #t
表employee包括字段:name, address
-------------------------------------------
select IDENTITY(int,1,1) AS ID_Num, employee.* into #t from employee
select name,address from #t where ID_Num not in(select top 3 ID_Num from #t) and ID_Num in(select top 5 ID_Num from #t)
drop table #t
#6
大家回答的都很好,等下再散分,你们回答的都不是我最满意的答案.
我想在问一下,我现在已经从数据库中取得了整张表的记录集.
我想通过Filter或Find取得第三条到第五条的记录怎么办?
有牢大家了.
我想在问一下,我现在已经从数据库中取得了整张表的记录集.
我想通过Filter或Find取得第三条到第五条的记录怎么办?
有牢大家了.
#7
因为我查询出来的记录要做修改所以yeahnope(金@_) 的方法行不通,
其他的我考虑到如果同一个表中存在两条相同的记录可能也行不通.
其他的我考虑到如果同一个表中存在两条相同的记录可能也行不通.
#8
如果是PB,在datawindows中修改第3-5行
如果是VB,在recordset中修改第3-5行
如果是VB,在recordset中修改第3-5行
#9
我是在VJ中修改,难道就没有其他的方法了吗?
UP!UP!UP!
UP!UP!UP!
#10
分页
#1
select top 3 * FROM YOURTABLE WHERE ID NOT IN (SELECT TOP 3 ID FROM YOURTABLE)
#2
select top 3 * from ( select top 5 * from table1 order by 顺序)order by 降序
#3
upup
#4
可以试试:
select * from table
where col in (select top 5 col from table) and
col not in (select top 2 col from table)
select * from table
where col in (select top 5 col from table) and
col not in (select top 2 col from table)
#5
如果这个表不存在primary key,则应该是:
表employee包括字段:name, address
-------------------------------------------
select IDENTITY(int,1,1) AS ID_Num, employee.* into #t from employee
select name,address from #t where ID_Num not in(select top 3 ID_Num from #t) and ID_Num in(select top 5 ID_Num from #t)
drop table #t
表employee包括字段:name, address
-------------------------------------------
select IDENTITY(int,1,1) AS ID_Num, employee.* into #t from employee
select name,address from #t where ID_Num not in(select top 3 ID_Num from #t) and ID_Num in(select top 5 ID_Num from #t)
drop table #t
#6
大家回答的都很好,等下再散分,你们回答的都不是我最满意的答案.
我想在问一下,我现在已经从数据库中取得了整张表的记录集.
我想通过Filter或Find取得第三条到第五条的记录怎么办?
有牢大家了.
我想在问一下,我现在已经从数据库中取得了整张表的记录集.
我想通过Filter或Find取得第三条到第五条的记录怎么办?
有牢大家了.
#7
因为我查询出来的记录要做修改所以yeahnope(金@_) 的方法行不通,
其他的我考虑到如果同一个表中存在两条相同的记录可能也行不通.
其他的我考虑到如果同一个表中存在两条相同的记录可能也行不通.
#8
如果是PB,在datawindows中修改第3-5行
如果是VB,在recordset中修改第3-5行
如果是VB,在recordset中修改第3-5行
#9
我是在VJ中修改,难道就没有其他的方法了吗?
UP!UP!UP!
UP!UP!UP!
#10
分页