Re: DELETE FROM A BLACK LIST

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: luca(dot)scaramella(at)recom(dot)it
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: DELETE FROM A BLACK LIST
Date: 2003-03-12 21:03:26
Message-ID: 20030312210326.GA9194@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Wed, Mar 05, 2003 at 11:27:54 +0100,
luca(dot)scaramella(at)recom(dot)it wrote:
> Hi all,
> I have a Blacklist table containing about 1000 ID to delete from another
> table (T1 about 1440294 records)
> If i use the SQL
>
> DELETE FROM T1 WHERE T1.ID IN (SELECT BLACKLIST.ID FROM BLACKLIST)

Use:

delete from t1 where t1.id = blacklist.id;

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Valerie Goodman 2003-03-12 21:12:07 "hide" values in a column
Previous Message David 2003-03-12 20:59:37 Deleting large object from table pg_largeobject