SQLite3命令行操作
# 启动
$ sqlite3
# 打开数据库
>.open people.db
# 格式化输出
>.header on
>.mode column
>.timer on
# 查看数据库文件
>.database
# 查看数据表
>.tablse
# 查看表结构
>.schema person
# 查看数据
>select * from person;
# 退出
> .quit
彭世瑜 ©著作权
文章标签 SQL 文章分类 SQL Server 数据库
SQLite3命令行操作
# 启动
$ sqlite3
# 打开数据库
>.open people.db
# 格式化输出
>.header on
>.mode column
>.timer on
# 查看数据库文件
>.database
# 查看数据表
>.tablse
# 查看表结构
>.schema person
# 查看数据
>select * from person;
# 退出
> .quit
1.介绍:sqlite3是linux上的小巧的数据库,一个文件就是一个数据库。
一、说明1、安装环境Windows二、步骤1、下载安装包1)官网
在sqlite 命令行使用VACUUM命令是可以释放sqlite所占用空间
SQLite的使用参考1.下载#### 官网:https://www.sqlite.org/downloa
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M