pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vikas <svikas@bsil.com>
To: pgsql-sql@postgresql.org
Subject: Help required on update query
Date: Tue, 27 May 2003 20:07:30 +0530
Message-ID: <000801c3245d$813bbc40$82060080@VikasSawant> (raw)

Hi Christoph,Could you please let me know the syntax for set newCol=oldCol, (This is reference to your mail pasted below)RegardsVikas Sawantsvikas@bsil.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

Message-ID: <000801c3245d$813bbc40$82060080@VikasSawant>
Permalink:  ../000801c3245d$813bbc40$82060080@VikasSawant/
Also on:    postgresql.org/message-id/000801c3245d$813bbc40$82060080@VikasSawant

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: svikas@bsil.com
  Subject: Re: Help required on update query
  In-Reply-To: <000801c3245d$813bbc40$82060080@VikasSawant>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox