Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sql to get listing from paging

I have a user list table on my listing page. The data needs to be paged, so how can I make SQL page the data for me (ie. pull the data in sets of 10 records from the table)?

like image 491
Apache Avatar asked Jan 21 '23 22:01

Apache


1 Answers

Informix has clauses analogous to, but different from, LIMIT and OFFSET:

SELECT SKIP n LIMIT m ...

You can use FIRST in place of LIMIT.

See the IDS 11.70 InfoCenter, or similar locations for earlier versions of IDS.

like image 139
Jonathan Leffler Avatar answered Jan 31 '23 10:01

Jonathan Leffler