Re: delete column

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Lincoln Yeoh <lyeoh(at)pop(dot)jaring(dot)my>
Cc: "Hillensbeck, Preston" <PHillensbeck(at)sfbcic(dot)com>, "'webmaster'" <webmaster(at)harbornet(dot)com>, "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: delete column
Date: 2002-04-27 06:01:55
Message-ID: 200204270601.g3R61t800350@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Lincoln Yeoh wrote:
> >Good. However, why do you do the 'create new table' when the SELECT
> >INTO creates the table?
> >
> >FAQ updated to take advantage of rollback-able DROP TABLE:
>
> Oops my mistake! I actually didn't use select into to create the table,
> because I didn't want the columns exactly the same as before - was
> switching from varchar to text.

Oh, yes, that makes sense for your case. You can't control the data
types with SELECT INTO.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jeffrey Baker 2002-04-27 06:47:21 Re: intel vs amd benchmark for pg server part 2
Previous Message Lincoln Yeoh 2002-04-27 04:48:21 Re: delete column