Skip to content

How to run SQL script from text file

agershun edited this page Jan 26, 2015 · 6 revisions

How to run SQL script from text file?

Question

I have all my SQL statements in text file. How to run it in Alasql?

Answer

You can use SOURCE statement:

    alasql('SOURCE "myfile.sql"');
Clone this wiki locally