Index | Home | Forums
Oracle PL/SQL Example 6-2 Checking SQL%ROWCOUNT After an UPDATE
Example 6-2 Checking SQL%ROWCOUNT After an UPDATE
CREATE TABLE employees_temp AS SELECT * FROM employees;
BEGIN
UPDATE employees_temp SET salary = salary * 1.05 WHERE salary < 5000;
DBMS_OUTPUT.PUT_LINE('Updated ' || SQL%ROWCOUNT || ' salaries.');
END;
/
This page was generated on/at Feb 23,2008 00:20:12
General comments and questions regarding this document should be sent by email to info@oracleabc.com or post your comments here