December 2010
Intermediate to advanced
451 pages
11h 16m
English
You need a PL/SQL data structure to group related employee data to make manipulating the group easier.
Define a record structure of the related employee data, and then create a variable to hold the record structure. In this example, a simple RECORD structure is defined and initialized.
DECLARE
TYPE rec_type IS RECORD (
last_name varchar2(25),
department varchar2(30),
salary number );
rec rec_type;
begin
rec.last_name := 'Juno';
rec.department := 'IT';
rec.salary := '5000';
END;
Record structures are created in PL/SQL by using the TYPE statement along with a RECORD structure ...
Read now
Unlock full access