Re: Database Integrity
| От | Jean-Yves F. Barbier |
|---|---|
| Тема | Re: Database Integrity |
| Дата | |
| Msg-id | 20111118204433.143cddd1@anubis.defcon1 обсуждение исходный текст |
| Ответ на | Database Integrity (JORGE MALDONADO <jorgemal1960@gmail.com>) |
| Ответы |
Re: Database Integrity
|
| Список | pgsql-novice |
On Fri, 18 Nov 2011 13:32:03 -0600 JORGE MALDONADO <jorgemal1960@gmail.com> wrote: > I need to delete several records from a table so my query is composed of a > DELETE command with a condition, something like the following: > > DELETE FROM tblTable WHERE field1 = something > > Do I need to use a transaction in an operation like this to be sure the > database remains integral in case of an error? AFAIK no because even if you're not in your transaction, Pg opens its own (hence rollback if something bad happens). -- Living on Earth may be expensive, but it includes an annual free trip around the Sun.
В списке pgsql-novice по дате отправления: