You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mathias Rangel Wulff edited this page Jun 12, 2015
·
2 revisions
Keyword ROWNUM
Has the alias ROW_NUMBER
You can receive number of result record in the recordset like in this example:
alasql('CREATE TABLE one (a INT PRIMARY KEY)');for(vari=1;i<1000;i++){alasql('INSERT INTO one VALUES (?)',[i]);};varres=alasql('SELECT * \ FROM (SELECT a, ROWNUM() AS r FROM one)\ WHERE r BETWEEN 55 AND 60');