Re: use of IN() with literals - Mailing list pgsql-general

From Thomas Kellerer
Subject Re: use of IN() with literals
Date
Msg-id hsuihv$p50$1@dough.gmane.org
Whole thread Raw
In response to use of IN() with literals  (Dennis Gearon <gearond@sbcglobal.net>)
List pgsql-general
Dennis Gearon wrote on 18.05.2010 19:05:
> select * from pg_class where relkind IN IN (‘r’, ‘v’, ‘S’);
                                           ^^  ^  ^

You repeated the keyword IN, and you are using the wrong quotes (unless this is a copy & paste problem of a broken
emailclient) 


select *
from pg_class
where relkind IN ('r', 'v', 'S');

should work


pgsql-general by date:

Previous
From: Dennis Gearon
Date:
Subject: use of IN() with literals
Next
From: David W Noon
Date:
Subject: Re: use of IN() with literals