oracle 54,Oracle 11G OCP 1Z0-053 54

论坛 期权论坛 编程之家     
选择匿名的用户   2021-6-2 16:54   1846   0

(54)Evaluate the following function code:

CREATE FUNCTION get_dept_avg(dept_id NUMBER) RETURN NUMBER RESULT_CACHE

RELIES_ON (EMPLOYEES)

IS

avgsal NUMBER(6);

BEGIN

SELECT AVG(SALARY) INTO avgsal FROM EMPLOYEES WHERE DEPARTMENT_ID = dept_id;

RETURN avgsal;

END get_dept_avg;

Which statement is true regarding the above function?

A. The cached result becomes invalid when any structural change is done to the EMPLOYEES table.

B. If the function execution results in an unhandled exception,the exception result is also stored in the cache.

C. Each time the function is invoked in a different session,the current result in the result cache gets overwritten.

D. If the function is invoked with a different parameter value,the existing result in the result cache gets overwritten by the latest value.

答案:(A)

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP