Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 sybase 12.5(ASE,而不是 Sql Anywhere)中,我可以使用一些(ANSI)SQL 来获取第 N 到第 M 行吗?
否则,指向非 ANSI 方式的指针会有所帮助,我找不到它!
一种可能的解决方案:
select rownum=identity(10), t.* into #temp from tablename t select * from #temp where rownum between 5 and 10 drop table #temp
将5和替换10为第 N 和 Mth 值。
5
10