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.
How can I both set rowcount and then execute a query in a Statement.executeQuery() function?
note I don't want to use Statement.setMaxRows() to do this
在 sybase ASE 12.5.3 之前,您需要使用“set rowcount #”然后选择条目。对于更高版本,您可以简单地使用以下
--Get top 10 rows. select top 10 * from TAB_A order by my_col asc
通过给出检查您的 Sybase ASE 版本
select @@version
如果你的版本不是12.5.4或以上,我建议升级到12.5.4。(您只需要安装 EBF)