当前位置:网站首页>SQL语言的通用语法及分类(二)
SQL语言的通用语法及分类(二)
2022-07-24 21:48:00 【Jiangxl~】
SQL语言的通用语法及分类
1.SQL语言的通用语法格式
无论是那种数据库的产品,SQL语法都是通用的。
- SQL语句可以单行编写也可以多行编写,以分号结尾。
- SQL语句可以使用空格或者缩进的方式来增强语句的可读性,空格和缩进的数量没有限制。
- MySQL数据库的SQL语句是不区分大小写的,关键字还是建议使用大写,较为规范,当然也看个人习惯。
- 关于注释方面有两种情况:
- 单行注释:–注释内容或者#注释内容(#号注释是MySQL特有的写法)
- 多行注释:
/*注释内容*/
2.SQL语言的几种分类
1)DDL类型
DDL类型的SQL语言全称为Data Definition Language,中文名称为数据定义语言,主要是用来定义数据库中的对象的,例如数据库、表和字段的定义,简单的理解就是DDL语言是来操作数据库、表和字段的。
2)DML类型
DML类型的SQL语言全称为Data Manipulation Language,中文名称为数据操纵语言,主要是用来对数据库中的数据进行增、删、改的操作,例如增加一条数据、删除一条数据、修改一条数据等等。
3)DQL类型
DQL类型的SQL语言全称为Data Query Language,中文名称为数据查询语言,主要是用来查询数据库中的表的数据的,像关联查询、多表查询、嵌
边栏推荐
- In the eyes of professionals in the robot industry, what is the current situation of the robot industry?
- Image processing notes (1) image enhancement
- What is a database password?
- [good question with two points]
- 企业运营自媒体不能“自嗨”:内容要接地气不能接广告
- Homework of the 20th week
- [icml2022] climate change and machine learning: opportunities, challenges and considerations, 121 ppt
- Makefile basics -- extensions
- Go+ language
- Feeding Program Source Code to ZK VMs
猜你喜欢

第二十周作业

Using FRP to achieve intranet penetration

对萌新小白电脑运行速度变慢解决的方法get!٩( ‘ω‘ )و get!٩( ‘ω‘ )و

H5 online CAD background reading and writing CAD files

Day10: declarative transaction control

Implement redis sentinel to simulate master failure scenarios

Kubernetes v1.24 is deployed based on containerd

Integrated swagger learning
![[icml2022] climate change and machine learning: opportunities, challenges and considerations, 121 ppt](/img/be/6a3f53070c2ffc9610a77d4e910f91.png)
[icml2022] climate change and machine learning: opportunities, challenges and considerations, 121 ppt

大咖对话:品牌扎堆数藏赛道,下半场的机遇、挑战在哪里?
随机推荐
C # review the entrustment and event
Makefile基础知识--扩展
Low code that democratizes software development
大咖对话:品牌扎堆数藏赛道,下半场的机遇、挑战在哪里?
How does novice Xiaobai build a personal server?
2022 Niuke multi school 7.23
做好项目管理的10个关键点和5大措施
Build Tencent cloud website server at low cost (build your own website server)
What problems should be paid attention to when using a database without public ip: port?
[icml2022] climate change and machine learning: opportunities, challenges and considerations, 121 ppt
Maixll dock QR code recognition
Web3 security go + security
"Iruntime": undeclared identifier
C # use SQLite
在机器人行业的专业人士眼里,机器人行业目前的情况如何?
SVM - for linear separability (Part 2)
[good question with two points]
Everything about database, database and table is here
Deep understanding of affairs
Composability and Recursion in snarkyJS