Skip to content
Mathias Rangel Wulff edited this page Jun 12, 2015 · 3 revisions

Keyword GO

Syntax:

    operator1 GO operator2

In AlaSQL all stetements san be separated with ;(semicolon) or with GO keyword:

    SELECT * FROM one; SELECT * FROM two GO SELECT * FROM three

In case of multiline stetement alasql() stores all results into array with results:

    var res = alasql('SELECT 10');
    // returns [{'10':10}]

    var res = alasql('SELECT 10 GO SELECT 20');
    // returns [ [{10:10}], [{20:20}] ]
Clone this wiki locally