From: | "Dmitri Bichko" <dbichko(at)genpathpharma(dot)com> |
---|---|
To: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: deleting multiple rows |
Date: | 2003-05-01 19:02:29 |
Message-ID: | 7A4ADADFC8AFF0478D47F63BEDD57CE30CDF60@gpmail.gphq.genpathpharma.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
As others have pointed out '||' is concatenation, you are looking for
'OR'.
But possibly a nicer way is '... WHERE column IN (value1, value2,
value4, value5);'
Dmitri
-----Original Message-----
From: Dennis Gearon [mailto:gearond(at)cvc(dot)net]
Sent: Thursday, May 01, 2003 2:03 PM
To: pgsql-general(at)postgresql(dot)org
Subject: [GENERAL] deleting multiple rows
A very simple SQL question, LOL.
If I want to delete multiple rows, I can use '||' to do it like this,
right?
DELETE FROM TableName
WHERE
column = value1 ||
column = value2 ||
column = value4 ||
column = value5
;
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?
From | Date | Subject | |
---|---|---|---|
Next Message | Joep DeVocht | 2003-05-01 20:15:51 | 2 questions (array element retrieval and users connected) |
Previous Message | Nigel J. Andrews | 2003-05-01 18:32:03 | Re: binaries for RH advanced server |