按照通常的方法是实现不了的,我们得借助于临时表以及一个函数来实现
代码如下:
Select no=Identity(int,1,1),* Into #temptable From dbo.teacher_info order by teacher_name--利用Identity函数生成记录序号
Select * From #temptable Where no>=10 And no < 20
Drop Table #temptable--用完后删除临时表
这样我们就实现了我们的目的。
Copyright © 2019- 7swz.com 版权所有 赣ICP备2024042798号-8
违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务