当前位置:网站首页>【SQL】各主流数据库sql拓展语言(T-SQL 、 PL/SQL、PL/PGSQL)
【SQL】各主流数据库sql拓展语言(T-SQL 、 PL/SQL、PL/PGSQL)
2022-07-05 23:30:00 【又被平均了】
前言
各数据库的拓展sql语法不一,但其都是为了是为了在标准sql的基础上使其更具编程性
- T-SQL 对应SQL Server
- PL/SQL对应Oravle
- 标准SQL对应MySQL
- PL/PGSQL对应Postgre SQL
标准SQL
文档为英文版,内容有点多
ISO_IEC 9075-1-2016
结构化查询语言,包括:
- 数据定义语言(DDL),例如:CREATE、DROP、ALTER等语句;
- 有数据操作语言(DML),例如:INSERT(插入)、UPDATE(修改)、DELETE(删除)语句;
- 数据查询语言(DQL),例如:SELECT语句;
- 数据控制语言(DCL),例如:GRANT、REVOKE、COMMIT、ROLLBACK等语句
T-SQL
T-SQL 即 Transact-SQL,是 SQL 在 Microsoft SQL Server 上的增强版,它是用来让应用程式与 SQL Server 沟通的主要语言。T-SQL 提供标准 SQL 的 DDL 和 DML 功能,加上延伸的函数、系统预存程序以及程式设计结构(例如 IF 和 WHILE)让程式设计更有弹性。
PL/SQL
PLSQL 是Procdure Language/Standards Query Language的缩写,PL/SQL是对SQL语言存储过程语言的扩展。它现在已经成为一种过程处理语言,简称PL/SQL。目前,PL/SQL 主要包含两部分,其一是数据库引擎部分,叫做数据库PL/SQL。其二是可嵌入其他产品工具中的独立引擎,也叫工具PL/SQL。两者编程非常类似,都具有特定结构、语法和逻辑机制。另外,工具PL/SQL还增加了用于支持工具的语法。
PL/PGSQL
pl/pgsql也是一种程序语言,叫做过程化SQL语言(Procedural Language/ Postgres SQL)。pl/pgsql是Postgresql [1] 数据库对SQL语句的扩展。在普通SQL语句的使用上增加了编程语言的特点,所以pl/pgsql就是把数据操作和查询语句组织在pl/pgsql代码的过程性单元中,通过逻辑判断、循环等操作实现复杂的功能或者计算的程序语言。
PL/PGSQL与上述两种一个主要区别是多了SQL Shell(psql)
边栏推荐
- Différence entre hors bande et en bande
- Fiddler Everywhere 3.2.1 Crack
- Rasa 3.x 学习系列-Rasa 3.2.1 新版本发布
- 成为程序员的你,后悔了吗?
- Go language implementation principle -- lock implementation principle
- 98. Verify the binary search tree ●●
- Cwaitabletimer timer, used to create timer object access
- Go language introduction detailed tutorial (I): go language in the era
- Rethinking about MySQL query optimization
- LeetCode——Add Binary
猜你喜欢
![[classical control theory] summary of automatic control experiment](/img/22/9c9e107da7e305ce0a57d55b4d0b5a.png)
[classical control theory] summary of automatic control experiment

如何获取localStorage中存储的所有值

【LeetCode】5. Valid palindrome

成为程序员的你,后悔了吗?

From the perspective of quantitative genetics, why do you get the bride price when you get married

STM32__ 06 - single channel ADC

保研笔记四 软件工程与计算卷二(8-12章)

【LeetCode】5. Valid Palindrome·有效回文

Spécifications techniques et lignes directrices pour la sélection des tubes TVS et ESD - Recommandation de jialichuang

数学公式截图识别神器Mathpix无限使用教程
随机推荐
CIS benchmark tool Kube bench
How to enable relationship view in phpMyAdmin - how to enable relationship view in phpMyAdmin
STM32__ 06 - single channel ADC
SpreadJS 15.1 CN 与 SpreadJS 15.1 EN
GFS分布式文件系统
How to insert data into MySQL database- How can I insert data into a MySQL database?
The interface of grafana tool displays an error, incluxdb error
Fiddler Everywhere 3.2.1 Crack
yate. conf
GFS分布式文件系統
4点告诉你实时聊天与聊天机器人组合的优势
Idea connects to MySQL, and it is convenient to paste the URL of the configuration file directly
JVM的简介
开源crm客户关系统管理系统源码,免费分享
VS2010编写动态链接库DLL和单元测试,转让DLL测试的正确性
Rsync remote synchronization
Practice of concurrent search
Calculating the number of daffodils in C language
Go language implementation principle -- map implementation principle
rsync远程同步