Re: IN clause

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: IN clause
Date: 2006-11-24 09:29:01
Message-ID: 20061124092901.GA7208@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

am Fri, dem 24.11.2006, um 14:42:30 +0530 mailte surabhi.ahuja folgendes:
> Hi,
>
> i have a table
> and i have the query select * from table where col_name is null;
>
> it returns some rows
>
> now, say i have to implement the same query using the in clause how shold it be
> done?
>
> select * from table where col_name in (null);

select * from table where col_name is null or col_name in (...);

Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47215, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net

In response to

  • IN clause at 2006-11-24 09:12:30 from surabhi.ahuja

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gopal 2006-11-24 10:11:57 Re: Postgres scalability and performance on windows
Previous Message Andrus 2006-11-24 09:16:25 more than one row returned by a subquery used as an expression