求助:SQL有没有一种方法按行号来访问一张表的记录呢?比如访问表students的第十行用student[10,]
游标或者mysql中的limit
http://blog.csdn.net/tuenbotuenbo/article/details/7974909
本质上,你的需求是分页查询的特例,页码就是行号,而每页取一条记录。
没有你说的这种但是可以锁定定几行 如
SELECT TOP 10 *
FROM Table
WHERE (id NOT IN (SELECT TOP 9 id FROM Table )) 查询前10条,不要前9条这样来锁定第10条
select * from students where id=10