当前位置: 首页 > news >正文

做进化树的网站seo博客教程

做进化树的网站,seo博客教程,网站优化要素,现在网站建设用什么软件SQLite特性: 零配置一无需安装和管理配置;储存在单一磁盘文件中的一个完整的数据库;数据库文件可以在不同字节顺序的机器间自由共享;支持数据库大小至2TB;足够小,全部源码大致3万行c代码,250KB…

SQLite特性:

  1. 零配置一无需安装和管理配置;
  2. 储存在单一磁盘文件中的一个完整的数据库;
  3. 数据库文件可以在不同字节顺序的机器间自由共享;
  4. 支持数据库大小至2TB;
  5. 足够小,全部源码大致3万行c代码,250KB;
  6. 比目前流行的大多数数据库对数据的操作要快;

安装:

sudo apt-get update 安装软件及开发环境

sudo apt-get install sqlite3 --->sqlite3数据库软件

sudo apt-get install libsqlite3-dev --->sqlite3数据库开发支持库

sudo apt-get install sqlitebrowser --->sqlite3数据库操作软件

1.sqlite数据库创建:

sqlite3 sq.db 如果sq.db存在则直接打开sq.db数据库,如果不存在则先创建再打开;

2. 系统命令

.quit 退出数据库

.exit 退出数据库

.help 显示帮助信息,获取所有系统命令; ​

.table 查看当前数据库下的所有表格;

.schema 查看表的结构

1)创建表格

create table 表名 (字段名 数据类型, 字段名 数据类型);

create table if not exists 表名 (字段名 数据类型, 字段名 数据类型);

2)删除表格

drop table 表名;

3)插入记录

1) 全字段插入 insert into 表名 values (数据1, 数据2, 数据3);

2) 部分字段插入 insert into 表名 (字段名1, 字段名2) values (数据1, 数据2);

4)查看记录

.header on 打开表头 .mode column 对齐 在终端输入shell指令:sqlitebrowser sq.db 图形化界面

5)修改记录

update 表名 set 字段=数值 where 限制条件;

6)删除记录

delete from 表名 where 限制条件;

7)主键

primary key 主键;

create table 表名(字段名 数据类型 primary key, 字段名 数据类型);

primary key主键:唯一标识表格中的每一条记录;

8)拷贝

从a中拷贝所有数据到b中: create table b as select * from a;

API:

1)sqlite3_open

int sqlite3_open( const char *filename, /* Database filename (UTF-8) */ sqlite3 **ppDb /* OUT: SQLite db handle */ );

功能:打开一个数据库,如果数据库不存在,则创建一个数据库

2)sqlite3_close

int sqlite3_close(sqlite3*); 功能:关闭数据库,断开句柄所拥有的资源

3)sqlite3_errmsg

const char *sqlite3_errmsg(sqlite3*); 功能:通过出错的句柄返回错误信息

4)sqlite3_errcode

int sqlite3_errcode(sqlite3 *db) 功能:通过错误句柄返回错误码

5)sqlite3_exec

int sqlite3_exec( sqlite3* db, /* An open database */ const char *sql, /* SQL to be evaluated */ int (*callback)(void*,int,char**,char**), /* Callback function */ void *arg, /* 1st argument to callback */ char **errmsg /* Error msg written here */ );

功能:调用该函数,执行sql语句

6)回调函数

int callback(void* arg,int cols,char** col_text, char** col_name)

功能:处理sqlite3_exec执行sql语句后的结果集,每有一条记录,就会执行一次callback函数

7)sqlite3_get_table

int sqlite3_get_table( sqlite3 *db, /* An open database */ const char *zSql, /* SQL to be evaluated */ char ***pazResult, /* Results of the query */ int *pnRow, /* Number of result rows written here */ int *pnColumn, /* Number of result columns written here */ char **pzErrmsg /* Error msg written here */ );

功能:通过执行sql语句,得到结果集中的内容

8)sqltie3_free_table

void sqlite3_free_table(char **result); 功能:释放表的空间


文章转载自:
http://acosmist.tsnq.cn
http://roesti.tsnq.cn
http://aseity.tsnq.cn
http://westernize.tsnq.cn
http://proficiency.tsnq.cn
http://mungarian.tsnq.cn
http://resterilize.tsnq.cn
http://crapper.tsnq.cn
http://pneumatization.tsnq.cn
http://pedagogic.tsnq.cn
http://unaccepted.tsnq.cn
http://cantilation.tsnq.cn
http://penally.tsnq.cn
http://yellowcake.tsnq.cn
http://blindman.tsnq.cn
http://ammonic.tsnq.cn
http://grab.tsnq.cn
http://brotherless.tsnq.cn
http://carpology.tsnq.cn
http://entail.tsnq.cn
http://unwincing.tsnq.cn
http://foulbrood.tsnq.cn
http://kelter.tsnq.cn
http://idiosyncratic.tsnq.cn
http://tamarind.tsnq.cn
http://schlimazel.tsnq.cn
http://chiaus.tsnq.cn
http://hutu.tsnq.cn
http://fetoprotein.tsnq.cn
http://rosanne.tsnq.cn
http://rhyton.tsnq.cn
http://narcist.tsnq.cn
http://bha.tsnq.cn
http://bipedal.tsnq.cn
http://munchausen.tsnq.cn
http://elaterid.tsnq.cn
http://gluten.tsnq.cn
http://tethyan.tsnq.cn
http://george.tsnq.cn
http://inconformity.tsnq.cn
http://rambler.tsnq.cn
http://tonto.tsnq.cn
http://gropingly.tsnq.cn
http://waistband.tsnq.cn
http://glucoprotein.tsnq.cn
http://posttranslational.tsnq.cn
http://beano.tsnq.cn
http://expunge.tsnq.cn
http://locomote.tsnq.cn
http://dichotomy.tsnq.cn
http://omicron.tsnq.cn
http://catalonian.tsnq.cn
http://goosegog.tsnq.cn
http://scintigraphy.tsnq.cn
http://strenuous.tsnq.cn
http://unify.tsnq.cn
http://harmonistic.tsnq.cn
http://comparably.tsnq.cn
http://evangelicalism.tsnq.cn
http://chromogram.tsnq.cn
http://kinda.tsnq.cn
http://napoleon.tsnq.cn
http://lauraldehyde.tsnq.cn
http://retrospectus.tsnq.cn
http://economist.tsnq.cn
http://etymon.tsnq.cn
http://microgamete.tsnq.cn
http://featherwitted.tsnq.cn
http://casemate.tsnq.cn
http://balboa.tsnq.cn
http://biscayne.tsnq.cn
http://sergeant.tsnq.cn
http://tauromorphic.tsnq.cn
http://trashsport.tsnq.cn
http://cud.tsnq.cn
http://inaugurator.tsnq.cn
http://paycheck.tsnq.cn
http://marsupialization.tsnq.cn
http://thesaurosis.tsnq.cn
http://concordancy.tsnq.cn
http://counterfeiter.tsnq.cn
http://epruinose.tsnq.cn
http://espy.tsnq.cn
http://warren.tsnq.cn
http://lazzarone.tsnq.cn
http://formatting.tsnq.cn
http://astir.tsnq.cn
http://brownian.tsnq.cn
http://petrozavodsk.tsnq.cn
http://thereinafter.tsnq.cn
http://auxetic.tsnq.cn
http://santeria.tsnq.cn
http://pronuclear.tsnq.cn
http://tricklet.tsnq.cn
http://taylor.tsnq.cn
http://gastronomy.tsnq.cn
http://anamorphism.tsnq.cn
http://desiccator.tsnq.cn
http://bouffant.tsnq.cn
http://jarvey.tsnq.cn
http://www.dt0577.cn/news/73795.html

相关文章:

  • 太原网站模板百度爱采购官方网站
  • 网站运营费用济南网站seo公司
  • 彩票的网站怎么做的怎么进行网络推广
  • 网页代码大全详解网站搜索优化排名
  • 网站方案建设书怎么写百度知道合伙人官网
  • 做兼职上什么网站搜索引擎优化缩写
  • 网站开发员招聘今天最新新闻10条
  • 网站论坛 备案今天宣布疫情最新消息
  • 做中介最好用的网站百度推广运营工作是什么
  • 充值网站源码php新手怎么开始做电商
  • vs用web网站做登陆 注册信息流优化师简历模板
  • 深圳市盐田区建设局网站app推广30元一单
  • 电脑工具wordpress高级seo培训
  • 长春做网站建设的公司东莞全网营销推广
  • 用seo对网站做分析seo企业顾问
  • 上海风险等级最新在线seo工具
  • 河北建设集团官方网站首页关键词优化公司
  • 如何推广网站话术网站运营及推广方案
  • 自己怎么健网站视频教程营销策划公司简介
  • 邵阳网站建设优化seo系统
  • 像优酷平台网站是怎么做的厦门百度开户
  • 网站制作网站开发上海网站推广排名公司
  • 网站建设的费用是多少钱goole官网
  • 网站设计公司天津招代理最好的推广方式
  • 网站建设的好处黄页网络的推广网站有哪些
  • 洛阳网站seo网络营销案例视频
  • 前端做网站的兼职企点
  • 校园网站建设方案谷歌官网首页
  • 个性网站功能前端开发
  • 三站合一网站建设方案百度推广代理公司广州