Re: Questions about rollback and commit

From: "Richard Huxton" <dev(at)archonet(dot)com>
To: "Fariba Noorbakhsh" <fNoorbakhsh(at)tecways(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Questions about rollback and commit
Date: 2001-07-16 12:23:50
Message-ID: 002701c10df2$2d1b5fe0$1001a8c0@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

From: "Fariba Noorbakhsh" <fNoorbakhsh(at)tecways(dot)com>

> I tried Rollback after update or insert, but it doesn't work!
> How can I rollback the update, insert or delete changes I have made in
> pgsql?
> Do I need to do commit after each update or insert?
> Do update, insert or delete consider as transactions?

By default, every SQL statement is wrapped in its own transaction. You'll
need to issue a BEGIN if you want to be able to ROLLBACK.

HTH

- Richard Huxton

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Vince Vielhaber 2001-07-16 12:32:00 Re: Nusphere/MySQL-AB arguing
Previous Message Nils Zonneveld 2001-07-16 12:01:02 Re: Questions about rollback and commit