当前位置:网站首页>Introduction and advanced MySQL (4)
Introduction and advanced MySQL (4)
2022-07-28 18:43:00 【Xiaoxinai programming】
1、 What is? SQL
The name of our course is MySQL, But it's not learning MySQL, It's learning SQL.SQL Call it structured query language , Is a set of language used to operate the database . We installed the database yesterday , You need to access the data inside , What you use is SQL Language .
And all relational databases support SQL, in other words We learned SQL You can operate at the same time Oracle MySQL SqlServer. Because most databases SQL Basically the same ( Note that there are also some differences )
Structured query language (Structured Query Language) abbreviation SQL( pronunciation :/ˈes kjuː ˈel/ “S-Q-L”), Is a special purpose programming language , Is a database query and programming language , For data access and query 、 Update and manage relational database system ; It is also the extension of database script file .
2、SQL classification
One : Data query language (DQL:Data Query Language):
Its statement , Also known as “ Data retrieval statements ”, To get data from a table , Determine how the data is presented in the application . Reserved words SELECT yes DQL( Also all SQL) The most used verb , other DQL The common reserved words are WHERE,ORDER BY,GROUP BY and HAVING. these DQL Reserved words are often associated with other types of SQL Statement together .
Two : Data operation language (DML:Data Manipulation Language):
Its sentences include verbs INSERT,UPDATE and DELETE. They are used to add , Modify and delete rows in the table . Also known as action query language .
database : Additions and deletions check select DQL operation Additions and deletions insert update delete DML operation
3、 ... and : Transaction language (TPL):
Its statement ensures that it is DML All rows of the table affected by the statement are updated in time .TPL Statements include BEGIN TRANSACTION,COMMIT and ROLLBACK.
Four : Data control language (DCL):
Its sentences are passed through GRANT or REVOKE Get permission to , Determine the access of individual users and user groups to database objects . some RDBMS You can use GRANT or REVOKE Control access to form columns .
5、 ... and : Data definition language (DDL):
Its sentences include verbs CREATE and DROP. Create a new table or delete a table in the database (CREAT TABLE or DROP TABLE); Index the table, etc .DDL It includes many reserved words related to obtaining data in the human database directory . It's also part of the action query .
6、 ... and : Pointer control language (CCL):
Its statement , image DECLARE CURSOR,FETCH INTO and UPDATE WHERE CURRENT For actions that are unique to one or more forms .
边栏推荐
- USB type-C details
- mysql 索引使用与优化
- Record your interview experience in Xiamen for two years -- Conclusion
- Implementation of solid transfer function (based on transfer)
- 1.3、链表
- 顿悟!百度强推的Redis天花板笔记,原来数据库是这样理解的
- 2022.7.26 构造函数,面试:new的作用、深拷贝和浅拷贝
- Brief introduction to the principle of spectrometer II
- Ue5 gas learning notes 1.9 skill system global classes (abilitysystemglobals)
- UE5 GAS 学习笔记 1.1能力系统组件Ability System Component
猜你喜欢

1.3、链表

NDK series (5): from introduction to practice, JNI explodes the liver and explains everything in detail!

Shenzhen offline registration starrocks on AWS: how to conduct rapid unified analysis of real-time data warehouses

Detailed explanation of oscilloscope parameters

高德地图实现自定义小蓝点 自定义点标记 绘制多边形/圆形区域 根据地图的移动显示或者隐藏自定义点标记的相关实现

ERROR 2003 (HY000) Can‘t connect to MySQL server on ‘localhost3306‘ (10061)解决办法

Multithreading and high concurrency -- source code analysis AQS principle

腾讯汤道生:开源是产业互联网时代新的生产方式和协作模式

Detailed explanation of network RJ45 interface

Bubble sorting and Related videos
随机推荐
ERROR 2003 (HY000) Can‘t connect to MySQL server on ‘localhost3306‘ (10061)解决办法
Msg.value of solidity
MYSQL入门与进阶(八)
Mqtt over quic: the next generation Internet of things standard protocol injects new impetus into the message transmission scenario
First understanding of structure
Ue5 gas learning notes 1.2 game Tags
Detailed explanation of oscilloscope probe
Docker builds MySQL master-slave replication
GIS数据漫谈(六)— 投影坐标系统
Ue5 gas learning notes 1.10 prediction
Go's walk library reports an error
.net swagger
直播|StarRocks 技术内幕 :低基数全局字典优化
Random talk on GIS data (VI) - projection coordinate system
What is the future of software testing?
#夏日挑战赛#【FFH】JS自定义组件:DIY一个随点随用的键盘!(一)
Golang 打包发布到各个平台
UE5 GAS 学习笔记 1.4属性集
NDK 系列(5):JNI 从入门到实践,爆肝万字详解!
Go concurrency one