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,古老的榕树,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。