当前位置:网站首页>[SQL] SQL expansion languages of mainstream databases (T-SQL, pl/sql, pl/pgsql)
[SQL] SQL expansion languages of mainstream databases (T-SQL, pl/sql, pl/pgsql)
2022-07-05 23:41:00 【Average again】
Preface
Expansion of databases sql Different grammar , But it's all about Standards sql Make it more programmable on the basis of
- T-SQL Corresponding SQL Server
- PL/SQL Corresponding Oravle
- standard SQL Corresponding MySQL
- PL/PGSQL Corresponding Postgre SQL
standard SQL
The document is in English , It's a little bit too much
ISO_IEC 9075-1-2016
Structured query language , Include :
- Data definition language (DDL), for example :CREATE、DROP、ALTER Such statements ;
- Data manipulation language (DML), for example :INSERT( Insert )、UPDATE( modify )、DELETE( Delete ) sentence ;
- Data query language (DQL), for example :SELECT sentence ;
- Data control language (DCL), for example :GRANT、REVOKE、COMMIT、ROLLBACK Such statements
T-SQL
T-SQL namely Transact-SQL, yes SQL stay Microsoft SQL Server An enhanced version of , It is used to allow applications to interact with SQL Server The main language of communication .T-SQL Provide standards SQL Of DDL and DML function , Plus the extended function 、 System stored procedures and programming structure ( for example IF and WHILE) Make programming more flexible .
T-SQL Introduction and basic grammar
PL/SQL
PLSQL yes Procdure Language/Standards Query Language Abbreviation ,PL/SQL It's right SQL Extension of language stored procedure language . It has now become a process processing language , abbreviation PL/SQL. at present ,PL/SQL It mainly consists of two parts , One is the database engine , It's called a database PL/SQL. The second is an independent engine that can be embedded in other product tools , Also called tool PL/SQL. The two programs are very similar , Have a specific structure 、 Grammatical and logical mechanisms . in addition , Tools PL/SQL Syntax for supporting tools has also been added .
PL/PGSQL
pl/pgsql It's also a programming language , It's called process SQL Language (Procedural Language/ Postgres SQL).pl/pgsql yes Postgresql [1] Database pair SQL Statement extension . In general SQL The use of statements adds the features of programming languages , therefore pl/pgsql It is to organize data operations and query statements in pl/pgsql In the procedural unit of code , To judge by logic 、 Loop and other operations to achieve complex functions or computational programming language .
PL/PGSQL One of the main differences from the above two is more SQL Shell(psql)
边栏推荐
- TVS管和ESD管的技术指标和选型指南-嘉立创推荐
- Design and implementation of secsha system
- STM32__ 06 - single channel ADC
- 98. 验证二叉搜索树 ●●
- Breadth first search open turntable lock
- VS2010 writes DLL and unit test of dynamic link library, and transfers the correctness of DLL test
- UVA11294-Wedding(2-SAT)
- 开关电源Buck电路CCM及DCM工作模式
- Spire. PDF for NET 8.7.2
- poj 2762 Going from u to v or from v to u? (推断它是否是一个薄弱环节图)
猜你喜欢
随机推荐
GFS Distributed File System
What is the process of building a website
Neural structured learning - Part 2: training with natural graphs
芯源&立创EDA训练营——无刷电机驱动
Breadth first search open turntable lock
From the perspective of quantitative genetics, why do you get the bride price when you get married
Common static methods of math class
20220703 周赛:知道秘密的人数-动规(题解)
做自媒体影视短视频剪辑号,在哪儿下载素材?
Solution to the packaging problem of asyncsocket long connecting rod
21. PWM application programming
Research notes I software engineering and calculation volume II (Chapter 1-7)
[original] what is the core of programmer team management?
Initial experience | purchase and activate typora software
Objective C message dispatch mechanism
Go language introduction detailed tutorial (I): go language in the era
The PostgreSQL column reference 'ID' is ambiguous - PostgreSQL column reference'id'is ambiguous
In C#, why can't I modify the member of a value type instance in a foreach loop?
Difference between out of band and in band
如何提升口才