I’m tring to run this code in SQL. It returns identifier not declared patient_t.i already created patient_t type/object.and also i tried patient_t%rowtype
CREATE OR REPLACE PACKAGE PATIENT_DATA_SERVICES AS
function get_patient_id
( p_first_name in varchar2
, p_last_name in varchar2
) return number
;
function get_patient_record
( p_patient_id in number
) return patient_t
;
END PATIENT_DATA_SERVICES;
You need to declare the type
patient_tin the PL/SQL package:Should
patient_tbe a table in your database, the function can be declared like this: