Home » SQL & PL/SQL » SQL & PL/SQL » PL/SQL "Success" Messages
PL/SQL "Success" Messages [message #37825] Fri, 01 March 2002 00:31 Go to next message
Emma
Messages: 12
Registered: November 2001
Junior Member
When you execute transactional sql within a pl/sql function, the output will tell you how many rows sucessfully inserted, updated, deleted etc. How do you then trap this "success" message within your script after execution of block to compare against expected actions.
eg:
update ....... ;
look at how many rows actually updated,
if more than one row updated then;
rollback;
do error message
exit
end;
Re: PL/SQL "Success" Messages [message #37828 is a reply to message #37825] Fri, 01 March 2002 01:03 Go to previous message
pratap kumar tripathy
Messages: 660
Registered: January 2002
Senior Member
update ...........
if sql%rowcount>1 then
rollback;
..............
end if;
Previous Topic: to pratap
Next Topic: Thanks Pratap! How do i call the Images stored in the Database using a procedure?
Goto Forum:
  


Current Time: Wed Apr 17 21:23:46 CDT 2024