为什么我们使用包装,因为我们有子程序? [英] Why We Use Package As We Have Subprograms?

查看:61
本文介绍了为什么我们使用包装,因为我们有子程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么我们使用套餐?我们知道它的速度很慢,与工作中的子程序一样。

Why We Use Package? As we know that it has poor speed and same as subprograms in working.

推荐答案





关于存储的子程序

子程序是一个PL / SQL单元,由SQL和PL / SQL语句组成,用于解决特定问题或执行一组相关任务。子程序可以有参数,其值由调用者提供。子程序可以是程序或功能。通常,您使用过程来执行操作和函数来计算和返回值。



关于包

包是一个PL / SQL单元,由相关的子程序和它们使用的显式游标和变量组成。



查看链接

开发存储的子程序和软件包 [ ^ ]


GVPrabu
Hi,

About Stored Subprograms
A subprogram is a PL/SQL unit that consists of SQL and PL/SQL statements that solve a specific problem or perform a set of related tasks. A subprogram can have parameters, whose values are supplied by the invoker. A subprogram can be either a procedure or a function. Typically, you use a procedure to perform an action and a function to compute and return a value.

About Packages
A package is a PL/SQL unit that consists of related subprograms and the explicit cursors and variables that they use.

Check the link
Developing Stored Subprograms and Packages[^]

Regards,
GVPrabu


将包视为命名空间,它们允许您在函数和存储过程中具有相同的名称(如果它们属于)不同的包。
Think of packages as namespaces, they allow you have the same name on functions and stored procedures if they belong to different packages.


打包用于小应用程序,子程序(程序和功能)也用于此。那么为什么我们使用包?
packaged is used for small application and the subprograms (procedure and function) is also used in this. so why we use package ?


这篇关于为什么我们使用包装,因为我们有子程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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