sqlite

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

sqlite,布布扣,bubuko.com

sqlite

上一篇:Linux系统中vim设置tab缩进为4个字符


下一篇:结合中断上下文切换和进程上下文切换分析Linux内核的一般执行过程