##Single SQL statement
Returns a single value of query result:
alasql('SELECT * FROM one'); => [{a:1},{a:2}]
alasql('DELETE FROM one WHERE rownum < 363'); => 362
alasql('DROP DATABASE IF EXISTS geo'); => 1 (if dropped) or 0 (if not exists)
Return array of results in array, each element is a result for each statements processed:
alasql(“CREATE DATABASE test; USE test1”); => [1,0, [{a:1},{a:2}]]
In async call all statements run in sequence, one after previous statements finished.
There was an error while loading. Please reload this page.
Quick links
AlaSQL wiki frontpage
About AlaSQL
Install AlaSQL
Get started with AlaSQL