Oracle
1Z0-147 · Question #34
Examine this procedure: CREATE OR REPLACE PROCEDURE INSERT_TEAM (V_ID IN NUMBER, V_CITY IN VARCHAR2 DEFAULT 'AUSTIN', V_NAME IN VARCHAR2) IS BEGIN INSERT INTO team (id, city, name) VALUES (v_id…
The correct answer is B. B. EXECUTE INSERT_TEAM(3, V_NAME=>'LONGHORNS', V_CITY=>'AUSTIN'); C. C. EXECUTE INSERT_TEAM(3,'AUSTIN','LONGHORNS'). See the full explanation below for the reasoning.
Question
Examine this procedure:
CREATE OR REPLACE PROCEDURE INSERT_TEAM
(V_ID IN NUMBER, V_CITY IN VARCHAR2 DEFAULT 'AUSTIN', V_NAME IN VARCHAR2)
IS
BEGIN
INSERT INTO team (id, city, name)
VALUES (v_id, v_city, v_name);
COMMIT;
END;
Which two statements will successfully execute this procedure in iSQL*Plus? (Choose two.)
Options
- AA. EXECUTE INSERT_TEAM;
- BB. EXECUTE INSERT_TEAM(3, V_NAME=>'LONGHORNS', V_CITY=>'AUSTIN');
- CC. EXECUTE INSERT_TEAM(3,'AUSTIN','LONGHORNS');
- DD. EXECUTE INSERT_TEAM (V_ID_ = 3, V_NAME = 'LONGHORNS', V_CITY := 'AUSTIN');
- EE. EXECUTE INSERT_TEAM (3,'LONGHORNS');
How the community answered
(59 responses)- A7% (4)
- B76% (45)
- D14% (8)
- E3% (2)
Community Discussion
No community discussion yet for this question.