From: | Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com> |
---|---|
To: | Dave Coventry <dgcoventry(at)gmail(dot)com> |
Cc: | pgsql-general General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: column does not exist error |
Date: | 2009-11-18 14:39:09 |
Message-ID: | dcc563d10911180639q46f7dc62n8aaa120d2be58d3b@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Type may be a reserved keyword and need double quoting:
where "type"='client';
On Wed, Nov 18, 2009 at 6:23 AM, Dave Coventry <dgcoventry(at)gmail(dot)com> wrote:
> Tearing my hair out, can anyone see what I'm doing wrong?
>
> SELECT title FROM node WHERE type=client;
>
> ERROR: column "client" does not exist
> LINE 1: SELECT title FROM node WHERE type=client;
>
> Yet this works:
>
> SELECT type FROM node;
> type
> --------
> client
> client
> client
> client
> client
> (5 rows)
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
--
When fascism comes to America, it will be intolerance sold as diversity.
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Kellerer | 2009-11-18 15:03:18 | Re: passing parameters to multiple statements |
Previous Message | Ivan Sergio Borgonovo | 2009-11-18 14:27:19 | advocating pgsql was:passing parameters to multiple statements |