Help required on update query

From: "Vikas" <svikas(at)bsil(dot)com>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: Help required on update query
Date: 2003-05-27 14:37:30
Message-ID: 000801c3245d$813bbc40$82060080@VikasSawant
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi Christoph,Could you please let me know the syntax for set newCol=oldCol, (This is reference to your mail pasted below)RegardsVikas Sawantsvikas(at)bsil(dot)com>
> http://fts.postgresql.org/db/mw/msg.html?mid=1071582
>
resp.
>
> You can rename your old column, create a new column varchar(100),
update
> ... set newCol=oldCol, drop oldCol and rename newCol to oldCol
> See ALTER TABLE doc for this.
>
Ok, this is the accurate solution to minimize side effects.
Thanks to Robert and Andreas for pointing this out.

Regards, Christoph

Browse pgsql-sql by date

  From Date Subject
Next Message Eric Anderson Vianet SAO 2003-05-27 14:38:36 alter column witdh
Previous Message Jodi Kanter 2003-05-27 14:30:05 Perl Book