SQLite3并没有提供man手册版的API文档,但是官网有API文档。
安装
sudo apt-get install sqlite3
sudo apt-get install libsqlite3-dev
在Shell中使用
创建数据库文件
sqlite3 db_name.db
显示所有命令
.help
退出sqlite3
.quit
显示当前打开的数据库文件
.database
显示数据库中所有表名
.tables
查看表的结构
.schema
创建新表
create table student (id int, name char, score float);

这篇博客介绍了如何在Linux环境下进行SQLite3数据库编程,包括安装步骤、Shell命令行操作如创建数据库、查询、更新记录等,以及在C语言中使用SQLite3 API进行数据库访问的方法,涉及sqlite3_open、sqlite3_close等关键函数。

3万+

被折叠的 条评论
为什么被折叠?



