当前位置:网站首页>Ubuntu中使用SQLite
Ubuntu中使用SQLite
2022-07-30 00:15:00 【瞻邈】
SQLite,是一款轻型的数据库,是遵守ACID的关系型数据库管理系统,它包含在一个相对小的C库中。它是D.RichardHipp建立的公有领域项目。它的设计目标是嵌入式的,而且目前已经在很多嵌入式产品中使用了它,它占用资源非常的低,在嵌入式设备中,可能只需要几百K的内存就够了。它能够支持Windows/Linux/Unix等等主流的操作系统,同时能够跟很多程序语言相结合,比如 Tcl、C#、PHP、Java等,还有ODBC接口,同样比起Mysql、PostgreSQL这两款开源的世界著名数据库管理系统来讲,它的处理速度比他们都快。
1. 命令行工具sqlite3
1.1. 安装sqlite3
sudo apt-get install sqlite31.2. 安装完后,查看版本号和使用帮助
sqlite3 -version
sqlite3 -help spatialite-gui1.3. 使用
目录下存在test.db文件,则会打开该数据库文件,若不存在,则会创建一个数据库文件,并进入数据库操作。
sqlite3 test.db 2. 可视化工具spatialite-gui
2.1. 安装spatialite-gui
Ubuntu安装命令
sudo apt install spatialite-guiMac安装命令
brew install spatialite-gui2.2. 使用
终端直接运行命令
spatialite-gui

3. sql命令
查看数据库
.database 创建数据表
create table student(name varchar(10), age smallint); 查看数据表
.table 插入数据
insert into student values('fck', 21); 查询数据
select * from [table name];清空数据
delete from [table name];退出数据库
.exit;
参考文献
边栏推荐
- Some personal understandings about MySQL indexes (partially refer to MySQL45 lectures)
- EA & UML Sun Arch - State Diagram :: Redraw Button State Diagram
- ZLMediaKit源码分析 - NotifyCenter
- The go language (functions, closures, defer, panic/recover, recursion, structure, json serialization and deserialization)
- 【集训DAY18】有趣的交换【模拟】【数学】
- The strongest JVM in the whole network is coming!(Extreme Collector's Edition)
- 二维数组的查找
- ZLMediaKit源码分析 - WebRtc连接迁移
- 头条号自媒体运营:如何在今日头条涨500+粉丝?
- EA&UML日拱一卒-多任务编程超入门-(8)多任务安全的数据类
猜你喜欢

更换可执行文件glibc版本的某一次挣扎

Worthington解离酶:胰蛋白酶及常见问题

Since the media increase play a short video?From the three aspects

Sentinel入门

【分层强化学习】survey

Worthington解离酶:中性蛋白酶(分散酶)详情解析

Low dropout linear regulator MPQ2013A-AEC1 brand MPS domestic replacement

Worthington弹性蛋白酶&透明质酸酶简介

rk-boot framework combat (1)

【集训DAY16】ALFA【凸壳】【计算几何】
随机推荐
二叉排序树(C语言)
Mysql internal and external connections
Minesweeper game in c language
cp强制覆盖与不覆盖拷贝方法
Worthington解离酶:胰蛋白酶及常见问题
Elephant Swap: Provide arbitrage space in the crypto market with ePLATO
QTableWidget usage example
call、apply 以及 bind 的区别和用法
Go language serialization and deserialization and how to change the uppercase of the json key value to lowercase if the json after serialization is empty
Filebeat如何保证在日志文件被切割(或滚动rolling)时依然正确读取文件
Introduction to Worthington Elastase & Hyaluronidase
BEVDetNet: Bird's Eye View LiDAR Point Cloud based Real-time 3D Object Detection for Autonomous Drivi
重写并自定义依赖的原生的Bean方法
Towhee 每周模型
"The lighthouse factory" of China path: smart roll out from point to surface
Douyin short video traffic acquisition strategy, mastering these will definitely be a hit
557. 反转字符串中的单词 III
The basic parallel I/O port of single chip microcomputer development
18 Lectures on Disassembly of Multi-merchant Mall System Functions
Worthington用于细胞收获的胰蛋白酶&细胞释放程序