Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id DE04347687D for ; Tue, 14 May 2002 13:13:53 -0400 (EDT) Received: from mail.enternet.hu (mail.enternet.hu [62.112.192.6]) by postgresql.org (Postfix) with ESMTP id 42502476998 for ; Tue, 14 May 2002 12:24:20 -0400 (EDT) Received: from 3e70ccf8.dialin.enternet.hu ([62.112.204.248] helo=server.sopron.gabor.hu) by mail.enternet.hu with esmtp (Exim 3.34 #1) id 177f3H-000CS9-00 for pgsql-admin@postgresql.org; Tue, 14 May 2002 18:21:27 +0200 Received: from freemail.hu (localhost [127.0.0.1]) by server.sopron.gabor.hu (8.11.2/8.11.2) with ESMTP id g4EGOt900994 for ; Tue, 14 May 2002 18:24:56 +0200 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Message-ID: X-Mailer: XFMail 1.5.1 on Linux X-Priority: 1 (High) In-Reply-To: Date: Tue, 14 May 2002 18:24:55 +0200 (CEST) From: MG To: PostgreSQL List Subject: Re: ALTER TABLE for field modify... X-Archive-Number: 200205/121 X-Sequence-Number: 4296 On 03-May-2002 Nick Fankhauser wrote: > alter table drop constraint ID unique; > alter table drop constraint ID not null; > > alter table 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 -----------------