当前位置:网站首页>[SQL Server] SQL overview
[SQL Server] SQL overview
2022-04-22 09:40:00 【I just learned programming】
What is? SQL?
SQL Structured query language (Structured Query Language), A device for storing 、 A computer language for manipulating or retrieving data stored in a relational database .
SQL It's a relational database system (Relation Database System) The standard language of . All relational database management systems , for example MySQL、MS Access、Oracle、Sybase、Informix、Postgres SQL and SQL Server, All use SQL As its standard database language .
Of course , They all use different SQL dialect . for example :
- Microsoft SQL Server It uses T-SQL
- Oracle It uses PL/SQL
- Microsoft Access Medium SQL be called JET SQL ( Local format ) wait
Why use SQL?
- Allow users to access data in a relational database
- Allow the user to describe the data
- Allows you to define data in a database , And operate on it
- Allowed to pass through SQL modular 、 Library or precompiler , Embedded in other languages
- Allows users to create or delete databases and tables
- Allows users to create views in the database 、 Stored procedures and functions
- Allow users to edit tables 、 Process and view settings
Shi Hai looks back
- 1970 year ,IBM Edgar · Dr. cod proposed a database relational model , Therefore, he is called the father of relational database .
- 1974 year , Structured query language is available .
- 1978 year ,IBM Yes Codd The proposed concept has been deeply studied , And released a product called System/R Products .
- 1986 year ,IBM The first relational database prototype is developed , The prototype was then ANSI Accepted and standardized .Relational Software——Oracle The forerunner of —— Released the first commercial relational database product .
SQL technological process
In any kind of RDBMS On the implementation SQL command , The database management system will determine the best way to execute the request , And by the SQL The engine figured out how to complete the task .
This process involves a variety of components , Including query scheduler (Query Dispatcher)、 Optimization engine (Optimization Engines)、 Classic query engine (Classic Query Engine) and SQL Query engine (SQL Query Engine) wait . The classic query engine is used to deal with all non - queries SQL Inquire about , and SQL The query engine does not process logical files .
The following picture briefly illustrates SQL The architecture of :

SQL command
Standards for interacting with relational databases SQL Command has CREATE、SELECT、INSERT、UPDATE、DELETE and DROP, These commands are divided into the following groups by purpose :
Data definition language
| command | describe |
| CREATE | Create a new table 、 Views or objects in other databases |
| ALTER | Modify existing database objects , Like a table |
| DROP | Delete table 、 View or other objects in the database |
Data manipulation language
| command | describe |
| SELECT | Retrieve specific data from one or more tables |
| INSERT | Create a new record |
| UPDATE | Modify the record |
| DELETE | Delete record |
Data control language
| command | describe |
| GRANT | Grant user privileges |
| REVOKE | Revoke the privileges granted to the user |
版权声明
本文为[I just learned programming]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220932544875.html
边栏推荐
猜你喜欢

Beyond iterm! Known as the next generation terminal artifact, I can't put it down after using it!

Beyond iterm! Known as the next generation terminal artifact, powerful!

Sorting and publishing of remote sensing image segmentation data set

QT AxObject库的简单操作

Online yaml to properties tool

加密压缩备份BAT脚本

virtualbox 虚拟机使用virtio-net 运行dpdk+vpp不能收取vlan报文解决

超越 iTerm!号称下一代 Terminal 终端神器,用完爱不释手!

PHP & Laravel & 掌握 api 生成 token 的几种方式以及一些注意事项(坑)

matplotlib教程04---绘制常用的图形
随机推荐
openlayer中,svg图片无width如何修改大小
Writing to remember the ~ goal and
QT布局管理复习
npm yarn 启动报错【已解决】
How to select Bi tools? These three questions are the key
How to ensure the consistency between cache and database (super detailed case)
2022年熔化焊接与热切割操作证考试题模拟考试平台操作
在 colab 上使用 yolov4
杰理之通常影响CPU性能测试结果的因素有:【篇】
Implementation and analysis of watchablestore in etcd
在销量压力下,国产手机开始降价了,但还没有放下最后的面子
L2-030 Icelander (25 points) (nearest public ancestor)
L2-033 简单计算器 (25 分)
微搭低代码零基础入门课(第二课)
mysql主备配置 二进制日志问题
浙政钉扫码登录
matplotlib教程04---绘制常用的图形
js老生常谈之this,constructor ,prototype
L3-004 tumor diagnosis (30 points) (3D BFS)
Project training - newspaper reading zombie