日期:2014-05-18  浏览次数:20659 次

问条简单的SQL语句,在SQLSERVER中,想查询、删除N 行以内的数据行吗?
就是想查前   10   行的数据,或者是第   11   行——第20   行的数据...

------解决方案--------------------
前10行的:select top 10 * from tablename
前11——20行的:select top 10 * from tablename where id not in
(select top 10 * from tablename)
思路就是这样
------解决方案--------------------
rs.absolute(11);可以定位在第11行上。明白了吧