-
Notifications
You must be signed in to change notification settings - Fork 666
Top
agershun edited this page Dec 28, 2014
·
4 revisions
Select top 10 records of data table:
alasql('SELECT TOP 10 * FROM Cities ORDER BY Name');
Select top 10 records of array:
var data = [];
for(var i=0;i<100;i++) data.push({num:i});
var res = alasql('SELECT TOP 10 * FROM ?',[data]);
© 2014-2024, Andrey Gershun & Mathias Rangel Wulff
Please help improve the documentation by opening a PR on the wiki repo