首页 > 数据库技术 > 详细

sqlite

时间:2014-05-31 01:00:46      阅读:402      评论:0      收藏:0      [点我收藏+]

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

原文:http://www.cnblogs.com/anjsxz/p/3761943.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!