IN clause

From: "surabhi(dot)ahuja" <surabhi(dot)ahuja(at)iiitb(dot)ac(dot)in>
To: <pgsql-general(at)postgresql(dot)org>
Subject: IN clause
Date: 2006-11-24 09:12:30
Message-ID: 8626C1B7EB748940BCDD7596134632BE3986B9@jal.iiitb.ac.in
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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);

but it does not return any rows.

Can you please suggest some way of doing it?

thanks,
regards
Surabhi

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrus 2006-11-24 09:16:25 more than one row returned by a subquery used as an expression
Previous Message Andrus 2006-11-24 09:11:09 Re: How to make a copy of schema