-
Notifications
You must be signed in to change notification settings - Fork 692
Limit
Mathias Wulff edited this page Aug 20, 2026
·
5 revisions
Limit the number of records from result set.
Syntax:
SELECT ... LIMIT number|param FETCH numberFor example, select 20 records starting from record number 5
alasql('SELECT * FROM Cities ORDER BY Name LIMIT 20 FETCH 5');
alasql('SELECT * FROM Cities ORDER BY Name LIMIT ? FETCH 5', [20]);© 2014-2026, Andrey Gershun & Mathias Rangel Wulff
Please help improve the documentation by opening a PR on the wiki repo