Re: column does not exist error - Mailing list pgsql-general

From Raymond O'Donnell
Subject Re: column does not exist error
Date
Msg-id 4B03F720.7060407@iol.ie
Whole thread Raw
In response to column does not exist error  (Dave Coventry <dgcoventry@gmail.com>)
List pgsql-general
On 18/11/2009 13:23, Dave Coventry wrote:
> Tearing my hair out, can anyone see what I'm doing wrong?
>
>   SELECT title FROM node WHERE type=client;

You need to quote literal values:

   SELECT title FROM node WHERE type='client';

Otherwise PG thinks you're referring to a column called "client", as you
saw.

Ray.

--
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie

pgsql-general by date:

Previous
From: Dave Coventry
Date:
Subject: column does not exist error
Next
From: "Naoko Reeves"
Date:
Subject: Re: column does not exist error