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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Before sybase ASE 12.5.3, you need to use “set rowcount #” and then select the entries.
For higher versions you can simply use the following
Check your Sybase ASE version by giving
If your version is not 12.5.4 or above, I suggest upgrading to 12.5.4. (You will just have to install an EBF)