SET COUNT
SET COUNT [ON | OFF]
This command determines whether a line of text is displayed at the end of the output from a DML statement, telling the user how many rows were affected.
SQL> set count on;
SQL> select count(*) from employee;
COUNT
============
42
Records affected: 1
The record count is displayed for all DML operations, not just for a SELECT.
SQL> create table fred( a integer); SQL> commit; SQL> insert into fred values (666); Records affected: 1 SQL> update fred set a = 123 where a = 666; Records affected: 1 SQL> delete from fred; Records affected: 1 SQL> commit;