Re: PSQL undesired transaction behavior when connection is lost.

Поиск
Список
Период
Сортировка
От Steven Klassen
Тема Re: PSQL undesired transaction behavior when connection is lost.
Дата
Msg-id 20041007195259.GA19692@commandprompt.com
обсуждение исходный текст
Ответ на Re: PSQL undesired transaction behavior when connection is lost.  (Steven Klassen <sklassen@commandprompt.com>)
Список pgsql-general
* Steven Klassen <sklassen@commandprompt.com> [2004-10-07 12:33:34 -0700]:

> DELETE FROM pay_stub_entry
> JOIN pay_stub ON (pay_stub_entry.pay_stub_id = pay_stub.id)
> WHERE pay_stub.created_date >=1096527603;

After RTFM'ing it appears you can't do actual joins with delete so
we'll just have to daisy-chain the where clause.

DELETE FROM pay_stub_entry
WHERE pay_stub_entry.pay_stub_id = pay_stub.id
AND pay_stub.created_date >=1096527603;

--
Steven Klassen - Lead Programmer
Command Prompt, Inc. - http://www.commandprompt.com/
PostgreSQL Replication & Support Services, (503) 667-4564

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

Предыдущее
От: David Fetter
Дата:
Сообщение: DDL triggers [was Re: database constraints]
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Question about timezones