Skip to content

Insert Values

agershun edited this page Dec 13, 2014 · 3 revisions

INSERT VALUES

    alasql('CREATE TABLE Cities (City STRING, Population NUMBER)');
    alasql('INSERT INTO Cities VALUES ("Moscow", 11500000), ("London",6000000)');
    alasql('INSERT INTO Cities VALUES ?',[{City:'Berlin', Population:4300000}]);
    alasql('INSERT INTO Cities VALUES (?,?)',["Beijing",5000000]);
    alasql('INSERT INTO Cities VALUES {City:"Paris",Population:5000000}');
Clone this wiki locally