Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts Of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

4th Edition

0619064625, 978-0619064624

More Books

Students also viewed these Databases questions

Question

6. The cost of the training creates a need to show that it works.

Answered: 1 week ago