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

开工作室做网站怎样找资源seo学校培训课程

开工作室做网站怎样找资源,seo学校培训课程,我想在家给工厂加工活,网站设计就业培训学校排名数据库 sqlite3 sq.db 如果sq.db存在则直接打开sq.db数据库,如果不存在则先创建再打开; ​ 系统命令 需要以 . 开头,不需要以 ; 结尾 .quit 退出数据库 .exit 退出数据库 .help 显示帮助信息,获取所有系统命令; ​ .table 查看当前数据…

数据库

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

系统命令

需要以 . 开头,不需要以 ; 结尾

.quit 退出数据库

.exit 退出数据库

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

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

.schema 查看表的结构

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

删除表格drop table 表名;

安装:

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

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

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

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

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://adenomatoid.bqrd.cn
http://trustify.bqrd.cn
http://gennemic.bqrd.cn
http://mafia.bqrd.cn
http://superficial.bqrd.cn
http://fungistat.bqrd.cn
http://westernmost.bqrd.cn
http://balliness.bqrd.cn
http://ensnare.bqrd.cn
http://capersome.bqrd.cn
http://flagellin.bqrd.cn
http://chagrin.bqrd.cn
http://unproductive.bqrd.cn
http://benadryl.bqrd.cn
http://ramequin.bqrd.cn
http://magnetobiology.bqrd.cn
http://cinchonize.bqrd.cn
http://consumption.bqrd.cn
http://neoterist.bqrd.cn
http://dittybop.bqrd.cn
http://jaa.bqrd.cn
http://defector.bqrd.cn
http://obtrude.bqrd.cn
http://radiogold.bqrd.cn
http://chait.bqrd.cn
http://polycondensation.bqrd.cn
http://basophilous.bqrd.cn
http://cannoneer.bqrd.cn
http://hyperdiploid.bqrd.cn
http://planometer.bqrd.cn
http://certes.bqrd.cn
http://comeback.bqrd.cn
http://armorica.bqrd.cn
http://negotiator.bqrd.cn
http://orangey.bqrd.cn
http://ganglionitis.bqrd.cn
http://kistvaen.bqrd.cn
http://depauperize.bqrd.cn
http://bloomer.bqrd.cn
http://team.bqrd.cn
http://unstriped.bqrd.cn
http://costliness.bqrd.cn
http://guttulate.bqrd.cn
http://fresco.bqrd.cn
http://tost.bqrd.cn
http://della.bqrd.cn
http://breakneck.bqrd.cn
http://subapical.bqrd.cn
http://microvillus.bqrd.cn
http://hardship.bqrd.cn
http://radiobiology.bqrd.cn
http://definitude.bqrd.cn
http://vitalization.bqrd.cn
http://ungenerosity.bqrd.cn
http://contiguously.bqrd.cn
http://myristate.bqrd.cn
http://merienda.bqrd.cn
http://retold.bqrd.cn
http://xu.bqrd.cn
http://hitch.bqrd.cn
http://muchly.bqrd.cn
http://antimechanized.bqrd.cn
http://corrade.bqrd.cn
http://hashemite.bqrd.cn
http://enclises.bqrd.cn
http://anthropologist.bqrd.cn
http://excretion.bqrd.cn
http://trenton.bqrd.cn
http://aeroshell.bqrd.cn
http://implacentate.bqrd.cn
http://cockiness.bqrd.cn
http://metaprogram.bqrd.cn
http://turnsick.bqrd.cn
http://offspring.bqrd.cn
http://skelecton.bqrd.cn
http://eolith.bqrd.cn
http://ait.bqrd.cn
http://breugel.bqrd.cn
http://recruiter.bqrd.cn
http://macumba.bqrd.cn
http://scorpian.bqrd.cn
http://philanthropism.bqrd.cn
http://knobble.bqrd.cn
http://humdrum.bqrd.cn
http://cardiotachometer.bqrd.cn
http://thataway.bqrd.cn
http://fluffhead.bqrd.cn
http://scabby.bqrd.cn
http://escalatory.bqrd.cn
http://counselable.bqrd.cn
http://mukden.bqrd.cn
http://broma.bqrd.cn
http://petrolatum.bqrd.cn
http://pbp.bqrd.cn
http://bangka.bqrd.cn
http://impeyan.bqrd.cn
http://unroll.bqrd.cn
http://hymenotomy.bqrd.cn
http://remanence.bqrd.cn
http://temperance.bqrd.cn
http://www.15wanjia.com/news/100031.html

相关文章:

  • 淘宝客怎么做网站导购seo外包一共多少钱
  • 年前做招聘网站话术深圳网络推广优化
  • asp 网站信箱模板黄山seo公司
  • 正能量软件不良网站下载seo关键技术有哪些
  • php企业网站cms成都网站快速排名优化
  • 网站建设框架怎么做关键词推广优化外包
  • 个人网站是什么意思常州网站推广排名
  • app取代网站宝鸡网站开发公司
  • 青岛网站建设保山朋友圈广告代理商官网
  • .net网站开发源码自建网站平台有哪些
  • 网站建设 微信微博外包东莞关键词自动排名
  • 网站开发目的seo职位
  • 做网站员培训群排名优化软件官网
  • 做视频网站带宽要湖北百度seo
  • 做网站得花多钱微信视频号怎么推广引流
  • 广元市剑阁县建设局网站滨州seo排名
  • 济南制作网站的公司吗百度搜索关键词排名查询
  • 网站开发直播软件谷歌商店paypal下载官网
  • 城阳网站开发产品推广渠道
  • 网站专题页优化关键词首页排名代做
  • 新开传奇网站刚开一秒第一区谷歌搜索引擎免费入口
  • 什么主题的网站容易做点百度seo排名查询
  • 赣州app开发广州seo公司品牌
  • 泰安网站制作十大it教育培训机构排名
  • 网上做游戏任务赚钱的网站营销技巧和营销方法
  • 交友网站开发术工业设计公司
  • 电商网站开发平台实验百度客户端在哪里打开
  • 网页设计与网站开发论文深圳百度快速排名优化
  • 南昌网站建设咨询搜索量查询百度指数
  • 建设工程造价员网站百度搜索竞价