-
Notifications
You must be signed in to change notification settings - Fork 659
How to run SQL script from text file
Mathias Rangel Wulff edited this page Mar 14, 2017
·
6 revisions
I have all my SQL statements in a 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:
alasql(['SOURCE "myfile.sql"']).then(function(){
...
});
© 2014-2024, Andrey Gershun & Mathias Rangel Wulff
Please help improve the documentation by opening a PR on the wiki repo