Re: ALTER TABLE for field modify...

Поиск
Список
Период
Сортировка
От MG
Тема Re: ALTER TABLE for field modify...
Дата
Msg-id XFMail.20020506190803.makgab@freemail.hu
обсуждение исходный текст
Ответ на Re: ALTER TABLE for field modify...  ("Nick Fankhauser" <nickf@ontko.com>)
Ответы Re: ALTER TABLE for field modify...  (David Stanaway <david@stanaway.net>)
Список pgsql-admin
On 03-May-2002 Nick Fankhauser wrote:
> alter table <tablename> drop constraint ID unique;
> alter table <tablename> drop constraint ID not null;
>
> alter table <tablename> add constraint ID references table2 ;
>

Hi!

It not works. :(
I try it:
proba=# create table "tabla1" ("ID" int8 NOT NULL UNIQUE, "nev" varchar(20) );
NOTICE:  CREATE TABLE/UNIQUE will create implicit index 'tabla1_ID_key' for
table 'tabla1'
CREATE
proba=# create table "tabla2" ("ID2" int8 NOT NULL UNIQUE, "nev2" varchar(20) );
NOTICE:  CREATE TABLE/UNIQUE will create implicit index 'tabla2_ID2_key' for
table 'tabla2'
CREATE

proba=# alter table tabla1 drop constraint ID not null;
ERROR:  parser: parse error at or near "not"
-------------------------------------------

What is the problem?


Bye!
-----------------
Linux RedHat 7.1
-----------------

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: no one parent tuple found
Следующее
От: Tao Wan
Дата:
Сообщение: failed to start up pgsql