Skip to content

Create Table

agershun edited this page Dec 28, 2014 · 7 revisions

CREATE TABLE

    alasql('CREATE TABLE star (  \
                one INT DEFAULT 100, \
                two STRING,\
                three BOOL PRIMARY KEY); \
    ');
    alasql('CREATE TABLE flight (flightNo INT, fromCity STRING, toCity STRING)');

For tables with unknown columns skip column definition part:

    alasql('CREATE TABLE mydata');
Clone this wiki locally