![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
数据库
fengruoying93
这个作者很懒,什么都没留下…
展开
-
sqlite3编程总结
sqlite提供的是一些C函数接口,你可以用这些函数操作数据库。通过使用这些接口,传递一些标准 sql 语句(以 char * 类型)给 sqlite 函数,sqlite 就会为你操作数据库。数据库基本操作1 基本流程(1)关键数据结构sqlite 里最常用到的是 sqlite3 * 类型。从数据库打开开始,sqlite就要为这个类型准备好内存,直到数据库关闭,整个过程都需要用到这个类型。当数据库打开时开始,这个类型的变量就代表了你要操作的数据库。下面再详细介绍。(2)打开数据库in.转载 2020-10-18 11:40:20 · 263 阅读 · 0 评论 -
sqlite3常用语句
本文列举了一些sqlite3数据库操作的常用sql语句1.建表: 1) 缺省写法,确定是新表create tablemytable (id integer, name text not null); 2) 标准写法,如果是已存在的表则不会创建create table if not exists mytable (id integer, name text not null); 补充:integer为整形,text为字符型,这些是数据类...转载 2020-10-18 11:22:24 · 691 阅读 · 0 评论 -
sqlite3的编译、安装和使用
一、sqlite3源码下载sqlite3官网下载:https://www.sqlite.org/download.html这里选择下载sqlite-amalgamation-3330000.zip(版本3.33.0)二、sqlite3在Linux下的编译将sqlite-amalgamation-3330000.zip解压,包含:shell.c、sqlite3.c、sqlite3.h、sqlite3ext.h几个文件1、编译命令行管理工具gcc shell.c sqlite3.c原创 2020-10-17 15:37:53 · 7857 阅读 · 1 评论