Question
--IN SQL/PL-- Assignment 4-5: Handling Predefined Exceptions A block of code has been created to retrieve basic customer information (see the assignment04-05.sql file in the
--IN SQL/PL--
Assignment 4-5: Handling Predefined Exceptions A block of code has been created to retrieve basic customer information (see the assignment04-05.sql file in the Chapter04 folder). The application page was modified so that an employee can enter a customer number that could cause an error. An exception handler needs to be added to the block that displays the message Invalid shopper ID onscreen. Use an initialized variable named lv_shopper_num to provide a shopper ID. Test the block with the shopper ID 99.
This is from assignment04-05.
DECLARE rec_shopper bb_shopper%ROWTYPE; BEGIN SELECT * INTO rec_shopper FROM bb_shopper WHERE idShopper = ??; END;
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