From: | "Brent R(dot) Matzelle" <bmatzelle(at)yahoo(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: ALTER DROP COLUMN |
Date: | 2001-02-12 20:34:20 |
Message-ID: | 20010212203420.7910.qmail@web311.mail.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I know it's a pain, but it isn't all that bad. Just rename your
table like so:
ALTER TABLE <old_name> RENAME TO <another_name>
Then re-create the old table without the deleted column(s):
SELECT col1, col2, col4 INTO TABLE <old_name> FROM
<another_name>
Then delete the old table:
DROP TABLE <another_name>
--- "ross::barna" <rbarna(at)neochi(dot)com> wrote:
> neochi=> ALTER TABLE news DROP COLUMN date;
> ERROR: ALTER TABLE/DROP COLUMN not yet implemented
>
>
> What's that about??? How do I drop a field of a table?!
>
> Thanks,
> -Ross
>
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
From | Date | Subject | |
---|---|---|---|
Next Message | J.H.M. Dassen Ray | 2001-02-12 20:54:49 | Re: PostgreSQL vs Oracle vs DB2 vs MySQL - Which should I use? |
Previous Message | Gregory Wood | 2001-02-12 20:25:23 | Re: Trigger/Function Problem |