Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 25749 invoked from network); 7 Nov 2005 21:02:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Nov 2005 21:02:43 -0000 Received: (qmail 72863 invoked by uid 500); 7 Nov 2005 21:02:42 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 72842 invoked by uid 500); 7 Nov 2005 21:02:41 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 72831 invoked by uid 99); 7 Nov 2005 21:02:41 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Nov 2005 13:02:41 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.98.34] (HELO brmea-mail-3.sun.com) (192.18.98.34) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Nov 2005 13:02:35 -0800 Received: from phys-d3-ha21sca-2 ([129.145.155.165]) by brmea-mail-3.sun.com (8.12.10/8.12.9) with ESMTP id jA7L2K3F005523 for ; Mon, 7 Nov 2005 14:02:20 -0700 (MST) Received: from conversion-daemon.ha21sca-mail1.sfbay.sun.com by ha21sca-mail1.sfbay.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) id <0IPL00001RNXGV@ha21sca-mail1.sfbay.sun.com> (original mail from Richard.Hillegas@Sun.COM) for derby-user@db.apache.org; Mon, 07 Nov 2005 13:02:47 -0800 (PST) Received: from [129.150.27.79] (vpn-129-150-27-79.SFBay.Sun.COM [129.150.27.79]) by ha21sca-mail1.sfbay.sun.com (iPlanet Messaging Server 5.2 HotFix 1.24 (built Dec 19 2003)) with ESMTP id <0IPL00DK3RSN1P@ha21sca-mail1.sfbay.sun.com> for derby-user@db.apache.org; Mon, 07 Nov 2005 13:02:47 -0800 (PST) Date: Mon, 07 Nov 2005 13:02:32 -0800 From: Rick Hillegas Subject: Re: Drop column/change default. In-reply-to: <3154.201.35.78.133.1131396060.squirrel@webmail.plugin.com.br> To: Derby Discussion Message-id: <436FC0E8.5090107@sun.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) References: <3154.201.35.78.133.1131396060.squirrel@webmail.plugin.com.br> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Edson, Enhancement request 396 tracks this issue and Scott MacDonald is working on it. For current capabilities, see the ALTER TABLE section of the Reference Manual. In a nutshell, you can't drop a column. Cheers, -Rick edson.richter@mgrinformatica.com.br wrote: >I have found no way to drop a column from a table. Is this possible? > >In meanwhile, if I can't drop the column, I need to change it from NOT NULL to NULL. AFAIK, >this is not possible. So, I need to change the column to add DEFAULT 0 (since it's numeric, >I just put a 0 in place). > >So, what is really possible to do? Drop column? Put a default? > > >Tkx, > >Edson Richter > > >