More efficient DELETE ... ?

Поиск
Список
Период
Сортировка
От The Hermit Hacker
Тема More efficient DELETE ... ?
Дата
Msg-id Pine.BSF.4.21.0001221316390.79710-100000@thelab.hub.org
обсуждение исходный текст
Ответы Re: [SQL] More efficient DELETE ... ?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: [SQL] More efficient DELETE ... ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
This looks painful ...

DELETE FROM webhit_referer_raw     WHERE oid IN ( SELECT w.oid                      FROM webhit_referer_raw w,
referrer_datar                     WHERE stat_date < 'Jan 17 2000 15:05:00'                       AND w.referrer_url =
r.referrer);
 

But, reading through the man page, it looks like this about the only way
of doing it?  Or am I missing something as obvious as the UPDATE I asked
about the other day? :(


Marc G. Fournier                   ICQ#7615664               IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: scrappy@hub.org           secondary: scrappy@{freebsd|postgresql}.org 



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

Предыдущее
От: De Moudt Walter
Дата:
Сообщение: Re: [SQL] SQL Things
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [SQL] More efficient DELETE ... ?