惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Privacy International News Feed
云风的 BLOG
云风的 BLOG
Google DeepMind News
Google DeepMind News
Recorded Future
Recorded Future
I
InfoQ
aimingoo的专栏
aimingoo的专栏
Microsoft Security Blog
Microsoft Security Blog
MongoDB | Blog
MongoDB | Blog
Vercel News
Vercel News
D
DataBreaches.Net
Microsoft Azure Blog
Microsoft Azure Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
A
About on SuperTechFans
博客园 - 聂微东
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
M
MIT News - Artificial intelligence
H
Help Net Security
B
Blog
J
Java Code Geeks
Y
Y Combinator Blog
Martin Fowler
Martin Fowler
IT之家
IT之家
WordPress大学
WordPress大学
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 叶小钗
博客园_首页
The Cloudflare Blog
爱范儿
爱范儿
Hugging Face - Blog
Hugging Face - Blog
博客园 - Franky
小众软件
小众软件
量子位
酷 壳 – CoolShell
酷 壳 – CoolShell
C
Check Point Blog
L
LangChain Blog
Stack Overflow Blog
Stack Overflow Blog
Recent Announcements
Recent Announcements
Last Week in AI
Last Week in AI
U
Unit 42
雷峰网
雷峰网
P
Proofpoint News Feed
有赞技术团队
有赞技术团队
V
Visual Studio Blog
人人都是产品经理
人人都是产品经理
The Register - Security
The Register - Security
罗磊的独立博客

博客园 - KevinWang

Server.HtmlEncode vs HttpUtility.HtmlEncode 在FireFox IE 下Response 中文文件名乱码问题 序列化,反序列化时低序位非打印 ASCII 字符的问题 - KevinWang 月薪上万的人都懂得这些道理 c# .ToString()格式化 利用ListView和DataPager控件来对数据分页 PageMethods Not Found (or Defined)? (转) asp.net中使用ajax中的三种方式 Asp.Net2.0技巧 - KevinWang - 博客园 虚方法(virtual)和抽象方法(abstract)的区别 数据库设计经验之谈(转载) 网站令浏览器崩溃的原因 各种流行的编程风格 2009年海外Web设计风潮 常用js框架,js库 硬盘RAID是什么意思?有什么用? T-SQL和PL/SQL 区别 数据库和数据仓库的区别 ASP.NET MVC 资料
What is PL/SQL?(PL/SQL是什么,与T-SQL对比)
KevinWang · 2009-12-04 · via 博客园 - KevinWang

PL/SQL:ORACLE对标准SQL语言的扩展   
   
T-SQL:MSSQL对标准SQL语言的扩展  

英文定义:In Oracle database management, PL/SQL is a procedural language extension to Structured Query Language (SQL). The purpose of PL/SQL is to combine database language and procedural programming language. The basic unit in PL/SQL is called a block, which is made up of three parts: a declarative part, an executable part, and an exception-building part.

Because PL/SQL allows you to mix SQL statements with procedural constructs, it is possible to use PL/SQL blocks and subprograms to group SQL statements before sending them to Oracle for execution. Without PL/SQL, Oracle must process SQL statements one at a time and, in a network environment, this can affect traffic flow and slow down response time. PL/SQL blocks can be compiled once and stored in executable form to improve response time.

A PL/SQL program that is stored in a database in compiled form and can be called by name is referred to as a stored procedure. A PL/SQL stored procedure that is implicitly started when an INSERT, UPDATE or DELETE statement is issued against an associated table is called a trigger.

  解释1:SQL是结构化查询语言,比较接近自然语言,使用SQL,只需要说干什么,不需要说怎么干。由数据定义语言、数据操纵语言、数据控制语言构成,它不面向过程,即前一条语句与后一条语句无关。     
  PL/SQL,Oracle对SQL标准的扩充,增加了面向过程的功能,所以可以用来编写存储过程、存储函数、触发器等等。  


解释2:pl/sql被称为块结构化语言,pl/sql块是pl/sql语言基本单位,其中可能包含程序代码,变量声明,异常处理,过程,函数甚至包含其他的pl/sql块。是sql的扩充

解释3:SQL是结构化查询语言,是标准的,PL/SQL是oracle的扩展,在标准SQL中加入了IF...ELSE...   For....等控制过程的SQL  

解释4:SQL是一种访问关系数据库的结构化查询语言.SQL是第四代语言(4GL).这意味着它描述的是应该做什么,而不是怎么做.  
        第三代语言(3GL),如C,COBOL,在本质上就更过程化.它们在解决问题时实现的是一步接一步的是算法.  
        PL/SQL相当于将SQL(4GL)的强大和灵活和3GL的过程性结构相结合.  
        PL/SQL是Procedural   Language/SQL的缩写,它通过增加了用在其他过程性语言中的结构来对SQL进行了扩展.