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:正确,对包体的重新编译不影响申明