Re: use of IN() with literals

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: use of IN() with literals
Date: 2010-05-18 17:25:21
Message-ID: hsuihv$p50$1@dough.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 email client)

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

should work

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David W Noon 2010-05-18 17:28:45 Re: use of IN() with literals
Previous Message Dennis Gearon 2010-05-18 17:05:49 use of IN() with literals