182.Which two statements are true regarding a PL/SQL package body? (Choose two.)
A.It cannot be created without a package specification.
B.It cannot invoke subprograms defined in other packages.
C.It can contain only the subprograms defined in the package specification.
D.It can be changed and recompiled without making the package specification invalid.
答案:AD
解析:
A:正确,可以单独创建包的申明,但是不可以单独创建包体
B:错误,可以调用,直接包名.程序名
C:错误,在申明中的是可以外部调用的,如果没有申明那么包体内部调用,还可以定义一些变量
D:正确,对包体的重新编译不影响申明
A.It cannot be created without a package specification.
B.It cannot invoke subprograms defined in other packages.
C.It can contain only the subprograms defined in the package specification.
D.It can be changed and recompiled without making the package specification invalid.
答案:AD
解析:
A:正确,可以单独创建包的申明,但是不可以单独创建包体
B:错误,可以调用,直接包名.程序名
C:错误,在申明中的是可以外部调用的,如果没有申明那么包体内部调用,还可以定义一些变量
D:正确,对包体的重新编译不影响申明
本文探讨了PL/SQL包体的关键特性,指出其不能独立于包声明存在,并且可以在不使包声明无效的情况下进行更改与重新编译。此外,还讲解了包体如何调用其他包中的子程序及包含未在声明中列出的子程序。

640

被折叠的 条评论
为什么被折叠?



