CREATE INSERT SELECT



examples/create-insert-select.sql
CREATE TABLE person (
    name TEXT,
    email TEXT
);

INSERT INTO person (name, email) VALUES ('Foo', 'foo@example.com');
INSERT INTO person (name, email) VALUES ('Bar', 'bar@example.com');
SELECT * from person;

$ sqlite3 < create-insert-select.sql
Foo|foo@example.com
Bar|bar@example.com


$ sqlite3 demo.db < create-insert-select.sql
Foo|foo@example.com
Bar|bar@example.com

$ rm -f demo.db