-
Notifications
You must be signed in to change notification settings - Fork 680
Import export
Andrey Gershun edited this page Apr 16, 2015
·
4 revisions
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 export to CSV, TAB (or TSV), XLSX, and JSON formats.
You can read tables directly from the CSV file, like:
var res = alasql('SELECT * FROM CSV("a.csv",{headers:true})');
© 2014-2024, Andrey Gershun & Mathias Rangel Wulff
Please help improve the documentation by opening a PR on the wiki repo