From: | Oliver Elphick <olly(at)lfix(dot)co(dot)uk> |
---|---|
To: | gearond(at)cvc(dot)net |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: deleting multiple rows |
Date: | 2003-05-01 18:20:49 |
Message-ID: | 1051813249.29849.14.camel@linda.lfix.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Thu, 2003-05-01 at 19:03, Dennis Gearon wrote:
> 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
> ;
Wrong!
|| is for string concatenation.
Possibly you mean:
WHERE column = value1 OR column = value2 OR ...
--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight, UK http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"For if ye forgive men their trespasses, your heavenly
Father will also forgive you; But if ye forgive not
men their trespasses, neither will your Father forgive
your trespasses." Matthew 6:14,15
From | Date | Subject | |
---|---|---|---|
Next Message | Lamar Owen | 2003-05-01 18:22:36 | Re: binaries for RH advanced server |
Previous Message | Stephan Szabo | 2003-05-01 18:20:05 | Re: deleting multiple rows |