Re: column does not exist error

Поиск
Список
Период
Сортировка
От Raymond O'Donnell
Тема Re: column does not exist error
Дата
Msg-id 4B03F720.7060407@iol.ie
обсуждение исходный текст
Ответ на column does not exist error  (Dave Coventry <dgcoventry@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Dave Coventry
Дата:
Сообщение: column does not exist error
Следующее
От: "Naoko Reeves"
Дата:
Сообщение: Re: column does not exist error