当前位置:网站首页>SQLite的简单应用
SQLite的简单应用
2022-08-08 21:02:00 【Kichlvichn·хуту】
嵌入式(程序驱动式),直接调用API,支持事务操作
数据类型
Integer varchar(10) float double char(10) text
SQL语句
创建表语句:
create table 表名 (字符名称 数据类型 约束,字符名称 数据类型 约束,字符名称 数据类型 约束,。。。。。。)
例如:
create table person(_id Integer primary key,name varchar(10), age Integer no null)
删除表语句:
drop table 表名
例如:
drop table person
插入数据:
insert into 表名[字段,字段]values(值1, 值2)
例如:
insert into person(_id, age) values(1,20)
insert into person values (2, “zs”, 30)
修改数据:
update 表名 set 字段 = 新值 where 修改条件
例如:
update person set name = “ls”, age = 20, where _id = 1
删除数据;
delete from 表名 where 删除的条件
例如:
delete from person where _id = 2
查询语句 :
select 字段名 from 表名 where 查询条件 group by 分组的字段 having 筛选条件 order by 排序字段
例如:
select * from person
select _id, name from person
select * from person where _id=1
select * from person where _id<>1
select * from person where _id=1 and age>18
边栏推荐
猜你喜欢
单片机——DHT11 温湿度传感器
C#版网络对战五子棋以及Socket通信
磁控胶囊胃镜:具有良好耐受性的非侵入性胃镜检查
Use fontforge to modify font, keep only numbers
Introduction to GeoServer: 01-Introduction
EasyExcel上传文件并使用Postman测试
1天搞定单片机中断——基础知识大全
目标检测论文 Bridng the Gap Between Anchor-based and Anchor-free Detection via ATSS
pytorch实现数据集读取/下载
GeoServer入门学习:05-多层级MBTiles规范数据发布
随机推荐
SQL注入之搭建dnslog
【Voice of dreams】
简单Swing界面笔记
rancher -部署
第十三届蓝桥杯(Web 应用开发)线上模拟赛【第九题】(知乎首页数据动态化)
Centos下载安装redis- 使用yum
GeoServer入门学习:03-快速入门
昇腾Ascend 随记 —— TensorFlow 模型迁移
【转发与重定向(二)】
神经网络论文Enhancing deep neural networks via multiple kernel learning
Kotlin中IO流
GeoServer introductory learning: 05-Multi-level MBTiles specification data release
【Oracle的NVL函数用法】
Iterative version of preorder traversal, inorder traversal, and postorder traversal of binary tree
二分查找的坑
Flask 教程 第五章:用户登录
drf-树形结构的model的序列化显示
【浏览器打开导出的excel】
Fastdata极数:元宇宙报告2022——Hello Metaverse
跨域问题 什么时候出现跨域问题 如何解决跨域问题