Skip to content

How to run SQL script from text file

Mathias Rangel Wulff edited this page Jun 13, 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