Re: Field add error

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Field add error
Дата
Msg-id 42C91128.4090500@archonet.com
обсуждение исходный текст
Ответ на Field add error  ("Jozsef Aron" <jaron@ar.hu>)
Список pgsql-bugs
Jozsef Aron wrote:
>
> CREATE TABLE X.tabla (
> razon bigserial,
> 2e00 varchar(11),
> AS varchar(5)
> ...
> ..
> .
> PRIMARY KEY (razon)
> ) WITHOUT OIDS;
>
> Fields name is not ok., denied : 'AS','1e00','2e00'

I believe this is normal as regards identifier names. The word "AS" is
probably reserved (sorry, haven't checked) and I don't think you can
start an identifier with a number.

So - if you want to use these names you must quote them:
   CREATE TABLE zzz1 ("2e00" int4);

If you would like to discuss this further, subscribe to the
pgsql-general mailing list where there are lots of people who can help you.

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: "Jozsef Aron"
Дата:
Сообщение: Field add error
Следующее
От: Szűcs Gábor
Дата:
Сообщение: Re: Select on pkey returned more than one row