当前位置:网站首页>General syntax and classification of SQL language (II)
General syntax and classification of SQL language (II)
2022-07-24 22:09:00 【Jiangxl~】
SQL General grammar and classification of languages
1.SQL The general grammatical format of language
No matter what kind of database products ,SQL The grammar is universal .
- SQL Statements can be written in a single line or in multiple lines , It ends with a semicolon .
- SQL Statements can use spaces or indents to enhance the readability of statements , There is no limit to the number of spaces and indents .
- MySQL Database SQL Statements are case insensitive , It is recommended to use uppercase for keywords , Relatively standardized , Of course, it also depends on personal habits .
- There are two cases about annotation :
- Single-line comments :– Comment content or # The comment (# Note number is MySQL A unique way of writing )
- Multiline comment :
/* The comment */
2.SQL Several classifications of language
1)DDL type
DDL Type of SQL The full name of the language is Data Definition Language, The Chinese name is data definition language , It is mainly used to define objects in the database , Like databases 、 Definition of tables and fields , The simple understanding is DDL Language is to operate database 、 Of tables and fields .
2)DML type
DML Type of SQL The full name of the language is Data Manipulation Language, The Chinese name is data manipulation language , It is mainly used to add data in the database 、 Delete 、 Change the operation , For example, add a piece of data 、 Delete a piece of data 、 Modify a piece of data and so on .
3)DQL type
DQL Type of SQL The full name of the language is Data Query Language, The Chinese name is data query language , It is mainly used to query the data of tables in the database , Like association query 、 Multi-table query 、 Embedded
边栏推荐
- What is the database account in DTS?
- CAD copy commands
- 巧妙使用sort(List<T>,Comparator<? super T>)比较器
- What problems should be paid attention to when using a database without public ip: port?
- Shallow copy deep copy
- How does novice Xiaobai build a personal server?
- 2022 Tsinghua summer school notes L2_ 2 basic introduction of CNN and RNN
- 使用frp实现内网穿透
- 工程项目管理软件排名
- 【考研英语词汇训练营】Day 11 —— offer ,form ,maintain ,critical
猜你喜欢
随机推荐
Integrated swagger learning
ACL 2022 | comparative learning based on optimal transmission to achieve interpretable semantic text similarity
Go+语言
基于深度学习的多任务人脸属性分析(基于飞桨PaddlePaddle)
What are the most problematic database accounts in DTS?
Feeding Program Source Code to ZK VMs
My love lesson 2 - remove webpage pop-up
C # review the entrustment and event
数据库之-元数据 DatabaseMetaData 初学
CAD text styles
Shallow copy deep copy
小程序地理位置接口申请
How does novice Xiaobai build a personal server?
Metauniverse: technological evolution, industrial ecology and big country game
Helm —— 强大的 Kubernetes 应用的包管理工具
Day10: declarative transaction control
[icml2022] climate change and machine learning: opportunities, challenges and considerations, 121 ppt
Which type of database migration is suitable for choosing the self built database access method on ECs?
RISC0:Towards a Unified Compilation Framework for Zero Knowledge
Calling Laser Galvanometer control in the application and development tutorial of motion control card








