Skip to content

Compiled statements

Mathias Rangel Wulff edited this page Nov 24, 2015 · 2 revisions

Compiled statement examples:

    var bigSum = alasql.compile('SELECT SUM(a) FROM one WHERE a>?', 'myDBname'); // no DBname needed
    var foo = bigSum([10]) ;
    var ins = alasql.compile('INSERT INTO one VALUES (?,?)'); // no DBname needed
    ins(1,10);
    ins(2,20);
Clone this wiki locally