|
sqlite3简单命令操作
sqlite3命令
在控制台中输入sqlite3
帮助命令
.help
退出命令
.quit .exit
sqlite3 文件名字
mkdir Db
cd Db
sqlite3 test.db
sqlite3 已经存在的文件名字
如果不存在的话就新建
导入数据.read 数据文件
.read test.sql
列出所有的数据库表
.tables
显示数据库结构
.schema
显示表的结构
.schema 表名
导出某个表的数据
.dump 表名
设置导出目标
.output 文件名
.output stdout
数据显示相关
.separator 分隔符
.mode 模式
|