【sqlite】1 start

描述:

是数据库引擎,基于c,所以需要提前编译才能运行

基本文件:sqlite3.c sqlite3.h shell.c

编译命令 http://www.sqlite.org/howtocompile.html#amal

下面列举主要目录

动态分配

sqlite采用动态内存分配,运用于sqlite reliable,predictable,robust,secure,efficient

动态分配特性:http://www.sqlite.org/malloc.html

  • robust against allocation failures (sqlite nomem)
  • no memory leaks(sqlite3 finalize,sqlite3 close())
  • memory usage limits( sqlite3 soft heap limit64,不重新分配,而是利用堆栈缓存)
  • zero-malloc option
  • application-supplied memory allocators
  • proof against breakdown and fragmentation
  • memory usage statics
  • plays well with mempry debuggers
  • minimal calls to the allocator
  • open acceess(malloc,realloc,free)

I/O异步模型asynchronous

c/c++接口

sqlite使用方法(环境)

sqlite架构

sqlite自动提交功能

sqlite作为文件形式的好处

sqlite书籍

sqlite的基本命令

基本命令具体使用

sqlite中约束冲突解决

sqlite的典型构建

sqlite3的基本数据类型

sqlite的突出特性

query语句

sqlite中文件格式变化

sqlite database中文件格式

sqlite测试

sqlite编译

;;;;;

时间: 2024-08-29 15:03:46

【sqlite】1 start的相关文章

【SQLite】select into 语句

sqlite不支持类似sqlserver中的select into 语法 在SQL Server中,我们要将一个表中的数据复制到一个新表中,可以这样写: SELECT * INTO newtable FROM oldtable SQLite不支持以上语法,替代的语句是这样: CREATE TABLE newtable AS SELECT * FROM oldtable

【SQLite】 介绍

一. 特点 : 小而精悍 1. 轻量级 : 占用资源低 2. 嵌入式 : 无需安装,直接引用就可用 3. 支持 SQL 语法, 大部分兼容 Sql Server 语法, 学习成本低 4. 性能 : 足够满足小型应用 5. 开源, 免费 二. 缺点 1. 开源版本不能对数据库加密.如需加密,只能入库前对数据加密,或找第三方组件 三. 下载 1. 官网 : http://www.sqlite.org/ 2. .Net 类库 : http://system.data.sqlite.org/index.

【SQLite】 语法

一 . 创建数据库 1. 只需创建数据库,只需创建文件,操作时将连接字符串指向该文件即可 2. 连接字符串 : data source = FilePath; 不能加密所以没有密码 二 . 创建表 1. 语法 : CREATE TABLE TableName(str TEXT,pic BLOB,int INTEGER) 2. 字段类型 : 可以忽略类型,你把所有类型设为 TEXT 都没问题,但为了方便使用和阅读,建议设置对应类型(图片,二进制 BLOB), 不然读取数据时转换可能会出问题 三 .

【SQLite】使用事务处理带参数的插入

using (SQLiteConnection conn = new SQLiteConnection(String.Format("Data Source={0};Pooling=true",fileName.ToString()))) { using (SQLiteCommand cmd = new SQLiteCommand()) { conn.Open(); cmd.Connection = conn; Stopwatch warch = new Stopwatch(); wa

【sqlite】python备份数据库

备份整个数据库的方法: # coding=utf-8 import sqlite3 def testBakSqlite(): conn = sqlite3.connect("sqlite_db_mine/testDB.db") with open('testDB.sql.bak','w') as f: for line in conn.iterdump(): data = line + '\n' data = data.encode("utf-8") f.write

【python】数据库

No1: [SQLite] 插入 # 导入SQLite驱动: >>> import sqlite3 # 连接到SQLite数据库 # 数据库文件是test.db # 如果文件不存在,会自动在当前目录创建: >>> conn = sqlite3.connect('test.db') # 创建一个Cursor: >>> cursor = conn.cursor() # 执行一条SQL语句,创建user表: >>> cursor.execu

【Android】Sqlite数据库增删改查

Android系统内置一个Sqlite数据库,如果app需要使用Sqlite数据库数据库存储数据,Android会为此app生成一个.db文件.这个数据库在data/data/<package_name>/databases里面,其中<package_name>为该安卓app的工程包名,这个目录必须root后才能看到.在Windows,单机的应用程序,存储数据,基本放到一个文件里面,正如游戏的存档,基本就是把当前的游戏状态存到一个用户很难找到的文件里面.每次存档读档就是一个从这个存

【原创】android——SQLite实现简单的注册登陆(已经美化)

1,Main_activity的xmL配置 1 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android.com/tools" 3 android:layout_width="match_parent" 4 android:layout_height="match_pa

【WindowsPhone】利用反射初始化和添加 SQLite数据库

首先引用命名空间 using System.Reflection 了解一下 Assembly 类 // // 摘要: // 表示一个程序集,它是一个可重用.无版本冲突并且可自我描述的公共语言运行时应用程序构造块. public abstract class Assembly 我们把Model类都约定好放在同一个命名空间下,下面以User类为例: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 u