What output will come in following program? DECLARE
TYPE EmpRec IS RECORD (last_name employees.last_name%TYPE, salary employees.salary%TYPE);
emp_info EmpRec;
emp_id NUMBER := 100;
BEGIN
UPDATE employees SET salary = salary * 1.1 WHERE employee_id = emp_id
RETURNING last_name, salary INTO emp_info;
dbms_output.put_line('Just gave a raise to ' || emp_info.last_name ||
', who now makes ' || emp_info.salary);
ROLLBACK;
END;
Options
- Record is inserted into employees table.
- Executes and updates the salary of an employee.
- Compilation Error
- None of the Above
CORRECT ANSWER : Executes and updates the salary of an employee.
Write your comments