Re: Questions about rollback and commit

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Questions about rollback and commit
Дата
Msg-id 002701c10df2$2d1b5fe0$1001a8c0@archonet.com
обсуждение исходный текст
Ответ на Questions about rollback and commit  (Fariba Noorbakhsh <fNoorbakhsh@tecways.com>)
Список pgsql-general
From: "Fariba Noorbakhsh" <fNoorbakhsh@tecways.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


В списке pgsql-general по дате отправления:

Предыдущее
От: Vince Vielhaber
Дата:
Сообщение: Re: Nusphere/MySQL-AB arguing
Следующее
От: Vince Vielhaber
Дата:
Сообщение: Re: ODBC driver for Mac?