pl/sql 可以提升性能

 

Improved performance:
Without PL/SQL, you would not be able to logically combine SQL statements as one unit.
没有pl/sql 你可能 不能够 把 sql 语句 逻辑化的 组织 成一个单元


If you have designed an application containing forms, you may have many different forms with fields in each form.
如果你需要设计一个应用,这个应用包含多个表单.不同的表单又包含很多域值

 

When a form submits the data, you may have to execute a number of SQL statements.
当一个表单提交数据,你需要执行若干sql语句

 

SQL statements are sent to the database one at a time.
sql语句被发送到数据库,每次发送一条

 

This results in many network trips and one call to the database for each SQL statement,
这个结果 导致许多网络传输,同时每一个sql语句都需要调用一次数据库

 

thereby increasing network traffic and reducing performance (especially in a
client/server model).
从而增加了网络堵塞,和降低性能(特别是C/S 模式)

 

With PL/SQL, you can combine all these SQL statements into a single program unit.
使用pl/sql ,你可以组织所有的sql语句形成单一的程序单元.

 

The application can send the entire block to the database instead of sending the SQL statements
one at a time.
应用程序可以发送全部的程序块给数据库. 而不是每次只发送一个sql语句

 

This significantly reduces the number of database calls.
这会显著地降低数据库调用的次数

 

As the slide illustrates, if the application is SQL intensive,
如幻灯片的插图所示,如果应用是sql集成的,


you can use PL/SQL blocks to group SQL statements
你可以使用pl/sql 程序块 来组织 sql 语句


before sending them to the Oracle database server for execution.
在把它们送到数据库服务器执行之前.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值