Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 44494475A1B for ; Sat, 6 Jul 2002 01:00:16 -0400 (EDT) Mailbox-Line: From mallah@trade-india.com Sat Jul 6 01:00:16 2002 Received: from mail-relay.trade-india.com (mail-relay.trade-india.com [203.196.129.235]) by postgresql.org (Postfix) with SMTP id D58BC475A18 for ; Sat, 6 Jul 2002 01:00:11 -0400 (EDT) Received: (qmail 3916 invoked from network); 6 Jul 2002 04:53:08 -0000 Received: from system67.trade-india-local.com (192.168.0.67) by infocom-236-129-del.trade-india.com with SMTP; 6 Jul 2002 04:53:08 -0000 Content-Type: text/plain; charset="iso-8859-1" From: "Rajesh Kumar Mallah." Organization: Infocom Network Limited. To: "Christopher Kings-Lynne" , Subject: Re: Is Dropping a column "CHECK" constraint possible? Date: Sat, 6 Jul 2002 10:33:16 +0530 User-Agent: KMail/1.4.1 References: <200207051729.42137.mallah@trade-india.com> <00e101c224a6$81ee3bc0$0200a8c0@SOL> In-Reply-To: <00e101c224a6$81ee3bc0$0200a8c0@SOL> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200207061033.16836.mallah@trade-india.com> X-Spam-Status: No, hits=-5.4 required=5.0 tests=IN_REP_TO,X_NOT_PRESENT,SUBJ_ENDS_IN_Q_MARK version=2.30 X-Spam-Level: X-Archive-Number: 200207/75 X-Sequence-Number: 8454 Yup it did!. Thanks a ton, it was there in the ALTER TABLE documentation i overlooked :-( regds mallah. On Saturday 06 July 2002 10:05, Christopher Kings-Lynne wrote: > > can anyone please help? > > i have a to drop a check contstraint from a column. eg > > > > tradein_clients=3D# \d t_a > > Table "t_a" > > Column | Type | Modifiers > > ------------+---------+----------- > > company_id | integer | > > exp | text | > > imp | text | > > Check constraints: "$1" (length(imp) > 1) > > "aaaaaq" (length(imp) > 1) > > > > Can i remove to contraints thru ALTER TABLE or similar commands. > > I have read the docs for ALTER TABLE but the command described is > > not working for me. > > This should work, so long as you're using postgres 7.2+ > > ALTER TABLE "t_a" DROP CONSTRAINT "aaaaaq" RESTRICT; > > Chris --=20 Rajesh Kumar Mallah, Project Manager (Development) Infocom Network Limited, New Delhi phone: +91(11)6152172 (221) (L) ,9811255597 (M) Visit http://www.trade-india.com , India's Leading B2B eMarketplace.