Question: I created this package head SQL> CREATE OR REPLACE PACKAGE pointOfSal AS 2 -- Procedure to add new customer 3 PROCEDURE add_customer ( 4 customer_name

I created this package head

SQL> CREATE OR REPLACE PACKAGE pointOfSal AS 2 -- Procedure to add new customer 3 PROCEDURE add_customer ( 4 customer_name IN VARCHAR2, 5 customer_phone IN VARCHAR2 6 ); 7 -- Cursor to check if customer exists 8 CURSOR checkExistingCustomer (customer_name IN VARCHAR2) IS 9 SELECT customer_name 10 FROM customers 11 WHERE customer_name = customer_name; 12 END pointOfSal; 13 /

and it worked

but my package body wont work, can someone tell me why?

I created this package head SQL> CREATE OR REPLACE PACKAGE pointOfSal AS

it says Package Body created with compilation errors.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!