gannev
asked on
Sybase Sql Query for displaying 10 to 20 records (pagination)
Hi Experts,
Can you please help to wrtie a query in sybase database.
For example result Select * from emp returns 100 rows.
I need queries to display first 1 to 20 and another query to display 20 to 40 etc.
Please help me on this.
Thanks,
Ganne
Can you please help to wrtie a query in sybase database.
For example result Select * from emp returns 100 rows.
I need queries to display first 1 to 20 and another query to display 20 to 40 etc.
Please help me on this.
Thanks,
Ganne
See http://www.isug.com/Sybase_FAQ/ASE/section6.2.html#6.2.12
ASKER
Am a beginner, and am not understanding that.
Can you please write a simple code snippet for
select 10 to 20 records from emp table.
Appreciate your help
Can you please write a simple code snippet for
select 10 to 20 records from emp table.
Appreciate your help
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Bret,
Thanks for this solution. It is working greatly. But this would lead me to write procedure.
I need a sql query for this. And I can call that query from my application(java appliction).
Thanks,
Ganne
Thanks for this solution. It is working greatly. But this would lead me to write procedure.
I need a sql query for this. And I can call that query from my application(java appliction).
Thanks,
Ganne