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

From Thomas Kellerer
Subject Re: column does not exist error
Date
Msg-id he0t3g$n4i$1@ger.gmane.org
Whole thread Raw
In response to column does not exist error  (Dave Coventry <dgcoventry@gmail.com>)
List pgsql-general
Dave Coventry, 18.11.2009 14:23:
> 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;
>

You are missing the quotes to identify a character literal:

SELECT title FROM node WHERE type='client';

Thomas

pgsql-general by date:

Previous
From: "Naoko Reeves"
Date:
Subject: Re: column does not exist error
Next
From: Pavel Stehule
Date:
Subject: Re: passing parameters to multiple statements