Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: rollback after 0 rows affected
The default Oracle DB behavior is for a transaction to be committed when the session exits.
This may be overridden in an application ( such as SQLPLUS ) so that the default behavior is a rollback.
I would explicitly commit or rollback were I writing an app.
Jared
On Wed, 14 Feb 2001, Frederik Lindberg wrote:
> I'm using transactions, with a delete followed by an insert.
>
> If the delete affects 0 rows, there is nothing to do.
>
> Do I need to rollback the transaction to abandon it, or is everything
> the way it should after a delete that affected 0 rows?
>
> Thanks!
>
>
> -- Sincerely, Fred
> Frederik Lindberg, CTO, CheetahMail
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: jkstill_at_cybcon.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Wed Feb 14 2001 - 16:48:29 CST