READ Free Dumps For Oracle- 1z0-001
Question ID 8075 | Written a PL/SQL loop, you need to test if the current FETCH was successful. Which SQL cursor attribute would you use to accomplish this task? |
Option A | SQL % ISOPEN |
Option B | SQL % ROWCOUNT |
Option C | SQL % FOUND |
Option D | This task cannot be accomplished with a SQL cursor attribute. |
Option E | A SQL cursor attribute cannot be used within a PL/SQL loop. |
Correct Answer | C |
Question ID 8076 | The structure of the DEPT table is as follows: NAME NULL TYPE Deptno Not Null NUMBER(2) Dname VARCHAR2(14) Loc VARCHAR2(13) Examine the code Declare Type dept_record_type is record (dno NUMBER, name VARCHAR2(20)); dept_rec dept_record_type; Begin Select deptno, dname INTO dept_rec FROM dept WHERE deptno=10; END Which statement displays the name of selected department? |
Option A | DBMS_OUTPUT.PUT_LINE (name); |
Option B | DBMS_OUTPUT.PUT_LINE (dname); |
Option C | DBMS_OUTPUT.PUT_LINE (dept_rec.name); |
Option D | DBMS_OUTPUT.PUT_LINE (dept_rec.dname); |
Option E | DBMS_OUTPUT.PUT_LINE (dept_rec (name)); |
Correct Answer | C |