您的位置:首页 > 数据库

sql查询从第二条开始

2009-10-19 10:53 197 查看
从数据库中查询前9条,从第二条输出
select top 9 * from biao where ID not in (select top 1 ID from biao)
那么以此类推
从数据库中查询前9条,从第三条输出
select top 9 * from biao where ID not in (select top 3 ID from biao)

从数据库中查询前9条,从第四条输出
select top 9 * from biao where ID not in (select top 4 ID from biao)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: