-
Notifications
You must be signed in to change notification settings - Fork 673
How to run SQL script from text file
Mathias Rangel Wulff edited this page Oct 5, 2015
·
6 revisions
I have all my SQL statements in text file. How to run it in AlaSQL?
You can use SOURCE statement:
alasql('SOURCE "myfile.sql"');
Please not that accessing files in a browser should be done async to give the best user experience:
alasql('SOURCE "myfile.sql"',[],function(res,err){...});
© 2014-2024, Andrey Gershun & Mathias Rangel Wulff
Please help improve the documentation by opening a PR on the wiki repo