Re: ERROR: syntax error at or near ":"

Поиск
Список
Период
Сортировка
От Ian Lawrence Barwick
Тема Re: ERROR: syntax error at or near ":"
Дата
Msg-id CAB8KJ=hMtsESx3Bwz95fG2GXdNh5A3VRHHV4_b_q1VzHoANkdw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: ERROR: syntax error at or near ":"  (Greg Williamson <gwilliamson39@yahoo.com>)
Список pgsql-general
Greg,

2013/3/7 Greg Williamson <gwilliamson39@yahoo.com>:
>
>
> Graham --
(...)
> The colon (":") is not needed, just remove it. A pair of colons is used to indicate a cast of a value; off hand I am
notcoming up with any use of a colon in basic SQL. 

This is psql-specific syntax; the colon should cause the value of the
psql variable 'content' to be interpreted; without it, the string
'content' would be inserted.

See:
http://www.postgresql.org/docs/current/interactive/app-psql.html#APP-PSQL-INTERPOLATION

Regards

Ian Barwick


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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: ERROR: syntax error at or near ":"
Следующее
От: Jeff Janes
Дата:
Сообщение: Re: WAL_DEBUG