SQL和PL / SQL有什么区别? [英] What is the difference between SQL and PL/SQL?

查看:88
本文介绍了SQL和PL / SQL有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,



祝你2015年新年快乐。



我想要的知道SQL和PL / SQL之间的区别..



有人给我两个样本查询。



问候

Reddy A

班加罗尔

Hi Friends,

Wish you a happy new Year 2015 in advance.

I wanted to know the differences between SQL and PL/SQL..

Someone give me the sample queries for both.

Regards
Reddy A
Bangalore

推荐答案

新年快乐..



1.)SQL是一种面向数据的语言,用于选择和操作数据集。 PL / SQL是一种用于创建应用程序的过程语言。



2.)PL / SQL就像Java或PHP一样可以是应用程序语言。 PL / SQL可能是我们用来构建,格式化和显示这些屏幕,网页和报告的语言.SQL可能是我们的屏幕,网页和报告的数据来源。



3.)SQL一次执行一条语句。 PL / SQL作为代码块执行。



4.)SQL告诉数据库做什么(声明性的),而不是如何做。相反,PL / SQL告诉数据库如何处理(程序)。



5.)SQL用于编码查询,DML和DDL语句。 PL / SQL用于编写程序块,触发器,函数,过程和包。



6.)我们可以在一个PL / SQL程序中嵌入SQL,但是我们无法在一个SQL语句中嵌入PL / SQL。
happy new year ..

1.) SQL is a data oriented language for selecting and manipulating sets of data. PL/SQL is a procedural language to create applications.

2.) PL/SQL can be the application language just like Java or PHP can. PL/SQL might be the language we use to build, format and display those screens, web pages and reports.SQL may be the source of data for our screens, web pages and reports.

3.) SQL is executed one statement at a time. PL/SQL is executed as a block of code.

4.) SQL tells the database what to do (declarative), not how to do it. In contrast, PL/SQL tell the database how to do things (procedural).

5.) SQL is used to code queries, DML and DDL statements. PL/SQL is used to code program blocks, triggers, functions, procedures and packages.

6.) We can embed SQL in a PL/SQL program, but we cannot embed PL/SQL within a SQL statement.


SQL是一种标准语言,但是每个公司(几乎)都使用不同的扩展和更改来实现该语言,因此SQL有很多种类。 ..

SQL在大多数情况下是指Microsoft的实现,但真正的名称是 T-SQL [ ^ ]。 PL / SQL [ ^ ]是由Oracle创建的风格...
SQL is a language with a standard, however every company (almost) implemented the language with different extensions and changes, so SQL has many flavors...
SQL in most cases refers to Microsoft's implementation, but the true name is T-SQL[^]. PL/SQL[^] is the flavor create by Oracle...


这篇关于SQL和PL / SQL有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆