+ -
当前位置:首页 → 问答吧 → 如何查询数据库第七条到十三条的信息?

如何查询数据库第七条到十三条的信息?

时间:2011-11-12

来源:互联网

Rs.source = "select * from News where Putout=true and TreeID='38' and id not in (select top 6 * from news where treeid='38' and putout=true)"

请问我这么写哪里有问题吗?
正确的应该怎么写?

作者: Orangexc   发布时间: 2011-11-12

加个判断 


if id7 then
rs.movenext
else
...
end if

作者: jamtoday   发布时间: 2011-11-12

可否详细写写?

作者: Orangexc   发布时间: 2011-11-12

select top 6 * from (select top 13 * from news where treeid='38' and putout=true order by id asc) N order by N.id desc

作者: wode421898419   发布时间: 2011-11-12