X-Original-To: pgsql-sql@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 84A74475AF8 for ; Tue, 1 Apr 2003 20:17:37 -0500 (EST) Received: from web12702.mail.yahoo.com (web12702.mail.yahoo.com [216.136.173.239]) by postgresql.org (Postfix) with SMTP id 8CA2B4758C9 for ; Tue, 1 Apr 2003 20:17:33 -0500 (EST) Message-ID: <20030402011736.39194.qmail@web12702.mail.yahoo.com> Received: from [68.35.166.87] by web12702.mail.yahoo.com via HTTP; Tue, 01 Apr 2003 17:17:36 PST Date: Tue, 1 Apr 2003 17:17:36 -0800 (PST) From: chester c young Subject: Re: How can I quit this: "Unique " to my table? To: pgsql-sql@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Status: No, hits=-10.4 required=5.0 tests=BAYES_10,IN_REP_TO,MAILTO_TO_SPAM_ADDR,QUOTED_EMAIL_TEXT, RCVD_IN_RFCI autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/16 X-Sequence-Number: 12717 If the constraint were named then it could be dropped - another good reason to name all constraints. I like Oracle Designer's way of applying the constraints with ALTER TABLE rather than CREATE TABLE - maintenance is much easier. > I presume you want to remove the unique column constraint? > > The ALTER TABLE command doesn't allow you to do this so another way > is as follows: ... > > If you have any reference or foreign key constraints that refer to > the b_prestamo table, then you will need to drop those constraints > and add them back after changing the table. > > Regards, > David Witham > Telephony Platforms Architect > Unidial > > -----Original Message----- > From: Luis Mix [mailto:ksql2002@yahoo.com.mx] > Sent: Wednesday, 2 April 2003 00:35 > To: pgsql-sql@postgresql.org > Subject: [SQL] How can I quit this: "Unique " to my table? > > > Hello pgsql-sql, > > When my table was create I wrote this: > > MyDatabase=# create table b_prestamo(no_inventa char(16) unique not > null, cve_area char(10), date1 date); > I need now that my table can accept repeated records, but not Null. > How can I do that? > SomeBody can help me please? > My table has information at the moment,what can I do for maintain > it? > > > > -- > Best regards, > Luis mailto:ksql2002@yahoo.com.mx > __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://platinum.yahoo.com