Re: DELETE with JOIN syntax

Поиск
Список
Период
Сортировка
От Brian Wong
Тема Re: DELETE with JOIN syntax
Дата
Msg-id e1c904a40507271331429f6450@mail.gmail.com
обсуждение исходный текст
Ответ на Re: DELETE with JOIN syntax  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Список pgsql-general
On 7/27/05, Stephan Szabo <sszabo@megazone.bigpanda.com> wrote:
>
> I think the where t2.column_id is null where column_id is the joining
> column makes this a form of not exists, so maybe:
>
> DELETE FROM t1 WHERE NOT EXISTS (SELECT 1 FROM t2 WHERE t2.column_id =
> t1.columnid);
>
>

This looks good. Thanks.

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

Предыдущее
От: John DeSoi
Дата:
Сообщение: Re: GUID for postgreSQL
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: GUID for postgreSQL