Write a block in PL/SQL to print the specific number of rows from a table.
DROP TABLE emp_temp;
CREATE TABLE emp_temp AS
SELECT employee_id, first_name, last_name,email
FROM employees;
BEGIN
UPDATE emp_temp
SET email = 'not available'
WHERE first_name LIKE 'B%';
dbms_output.Put_line('Number of record updated: '
||To_char(SQL%rowcount));
END;
/
Comments
Leave a comment