DECLARE
wages NUMBER;
hours_worked NUMBER := 40;
hourly_salary NUMBER := 22.50;
bonus NUMBER := 150;
country VARCHAR2(128);
counter NUMBER := 0;
done BOOLEAN;
valid_id BOOLEAN;
emp_rec1 employees%ROWTYPE;
emp_rec2 employees%ROWTYPE;
TYPE commissions IS TABLE OF NUMBER INDEX BY PLS_INTEGER ;
comm_tab COMMISSIONS;
BEGIN
wages := (hours_worked * hourly_salary) + bonus;
country := 'France';
country := Upper('Canada');
done := (counter > 100);
valid_id := true;
emp_rec1.first_name := 'Antonio';
emp_rec1.last_name := 'Ortiz';
emp_rec1 := emp_rec2;
Comm_tab(5) := 20000 * 0.15;
END;
/
Assigning Values to Variables With the Assignment Operator
0 comments:
Post a Comment