You can access @@ROWCOUNT like any other variable in an IF statement. The rows affecting statement can be any INSERT, UPDATE, DELETE or SELECT statement that is executed directly before the @@ROWCOUNT execution, taking into consideration that both the rows affecting statement and the system variable calling query are in the same execution. * FROM mytable WHERE transaction_date = CURRENT_DATE; Good Luck, Kent When we set NOCOUNT to ON, the Messages tab will not display the value. by the last executed statement in the batch. Nope. Sí, puedes usar SQL%ROWCOUNT.Es válido en PL/SQL. Statements such as USE, SET