当前位置:网站首页>嵌入式数据库开发编程(四)——DDL、DML
嵌入式数据库开发编程(四)——DDL、DML
2022-06-29 11:09:00 【光追雨】
文章目录
先输入
sqlite3 文件名
一、创建表
- 创建表语法
CREATE TABLE table_name(name1 type) - 字段修饰符
- primary key 定义主键列
- AUTOINCREMENT 自动增长
- UNIQUE 字段的值唯一
- NOT NULL 字段的值不为空

二、删除表
DROP TABLE 表名
三、修改表
3.1 添加字段add

3.2 删除字段(mysql)

3.3 修改字段modify和change(mysql)
change

modify

3.4 指定增加的字段在表中显示的位置(mysql)

3.5 表重命名

四、内置命令
.table:查看表是否创建成功.schema:查看列表的完整信息
五、DML






sqlite3中没有命令 truncate table
清空表:用delete from 表名字
边栏推荐
- 龙书虎书鲸书啃不动?试试豆瓣评分9.5的猴书
- 【高并发】2.8万字的Callable和Future面试知识点总结,看完我直接面进了字节跳动,原谅我有点飘了(中)
- Discussion on QT learning 10 message processing in QT
- 【HBZ分享】Mysql的InnoDB原理
- [NLP] text generation topic 1: basic knowledge
- ESP8266简介:三种编程方式「建议收藏」
- RepOptimizer: 其实是RepVGG2
- 哈希Hash竞猜游戏系统开发详解技术丨哈希竞猜游戏系统开发方案解析
- equals提高执行速度/性能优化
- Deep understanding of volatile keyword
猜你喜欢
随机推荐
Babbitt | yuancosmos daily must read: HTC announced the launch of the first yuancosmos mobile phone, which costs about 2700 yuan. What are the new ways to play
Follow Me Study HCIE-Big Data-Data Mining 第一章 数据挖掘介绍 模块一
基于鲲鹏开发套件实现x86平台到Kunpeng平台的源码迁移【玩转华为云】
【毕业季】总结过去,展望未来
Return value‘s Lifetime
正大期货留4数据整合
ETL为什么经常变成ELT甚至LET?
Meichuang was selected as one of the first member units of the "business security promotion plan" of the ICT Institute
Qt学习02 GUI程序实例分析
【VTK】MFC基于VTK8.2的网格编辑器
Numpy's ndarray array Foundation
shell判断命令是否执行成功
matlab fmincon 精度,fmincon与quadprog误差
C语言##__VA_ARGS__的用法
iMile 利用 Zadig 多云环境周部署千次,跨云跨地域持续交付全球业务
哈希Hash竞猜游戏系统开发详解技术丨哈希竞猜游戏系统开发方案解析
QT learning 15 separation of user interface and business logic
妙!妙盈科技全面实施 Zadig 助力容器化建设,全面拥抱 Kubernetes 和云原生
[VTK] MFC grid editor based on vtk8.2
TTChat x Zadig 开源共创 Helm 接入场景,环境治理搞得定!








![[graduation season] summarize the past and look forward to the future](/img/9e/e0028e8328a8103793066e1eb1f99a.png)
