sqlite> .mode column
sqlite> .headers on
create table test (id interger primary key, value text);
select last_insert_rowid();
create index test_idx on test (value);
create view schema as select * from sqlite_master;
.exit
.tables
.indices test
.schema test
select type,name,tbl_name ,sql from sqlite_master order by type;
.dump
.output file.sql
.show
.read file.sql
.output file.csv
.separator ,
sqlite3 test.db .dump >test.sql
sqlite3 test2.db<test.sql
sqlite3 -init test.sql test3.db