| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера