Re: Expression matching related question

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: Expression matching related question
Дата
Msg-id 20060409204207.GA62144@winnie.fuhr.org
обсуждение исходный текст
Ответ на Expression matching related question  (Peter Hoskin <peterh@criten.org>)
Список pgsql-general
On Mon, Apr 10, 2006 at 06:23:01AM +1000, Peter Hoskin wrote:
> I wish to do a query such as:
> SELECT * FROM table WHERE column='something' AND column2='something
> else' AND (network='0' OR (left=0 AND network>0));
>
> However, when I execute this in phppgadmin I'm told there is an error
> around the = character in left=0. Can't seem to figure the syntax.

If you're using reserved words like table, column, and left as
identifiers then you'll need to double-quote them.  Better yet,
avoid using reserved words as identifiers.

--
Michael Fuhr

В списке pgsql-general по дате отправления:

Предыдущее
От: Peter Hoskin
Дата:
Сообщение: Re: Expression matching related question
Следующее
От: "Daniel McBrearty"
Дата:
Сообщение: advice on schema for multilingual text