Re: can't create user collumn

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: can't create user collumn
Дата
Msg-id 20060317083626.L36967@megazone.bigpanda.com
обсуждение исходный текст
Ответ на can't create user collumn  (loki <loigu@centrum.cz>)
Список pgsql-general
On Fri, 17 Mar 2006, loki wrote:

> Hi,
> i'm just starting with postgres DB, but this looks very strange to me:
>
> If i try to create table with collumn user, it fails with error:
> create exec error:ERROR:  syntax error at or near "user" at character 368

USER is a reserved word in SQL and as such cannot be used as a non-quoted
identifier so "user" (with the quotes) should work, however you'd probably
have to use the quotes in all cases. Technically, we allow some reserved
words as non-quoted identifiers in some places, however to be compliant to
spec you cannot use any of the reserved words that way.

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

Предыдущее
От: SunWuKung
Дата:
Сообщение: Re: pgsql variables from records
Следующее
От: Kenneth Downs
Дата:
Сообщение: Re: pgsql variables from records