Skip to content

Import export

Andrey Gershun edited this page Apr 16, 2015 · 4 revisions

Import and Export

Export

You can save tables directly to the CSV file, like:

    var data = [{a:1,b:10},{a:2,b:20}];
    alasql('select * into csv("a.csv",{headers:true}) from ?',[data]);

Try this example in jsFiddle.

AlaSQL also supports CSV, TAB (or TSV), XLSX, JSON formats.

Clone this wiki locally