Answered step by step
Verified Expert Solution
Question
1 Approved Answer
DECLARE v_number NUMBER(6, 2) := 100; v_region_id regions.region_id%TYPE; v_region_name regions.region_name%TYPE; BEGIN SELECT region_id, region_name INTO v_region_id, v_region_name FROM regions WHERE region_id = 1; DBMS_OUTPUT.PUT_LINE('Region: '
DECLARE v_number NUMBER(6, 2) := 100; v_region_id regions.region_id%TYPE;
v_region_name regions.region_name%TYPE;
BEGIN
SELECT region_id, region_name INTO v_region_id, v_region_name
FROM regions
WHERE region_id = 1;
DBMS_OUTPUT.PUT_LINE('Region: ' || v_region_id || ' is: ' || v_region_name); v_number := v_number / 0;
END;
1. Why would this display an error message?
2. Modify the block to handle the execpetion. Explain what will happen.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started