Re: Copy column contents

From: Chris <csmith(at)squiz(dot)net>
To: arun kv <arun(at)library(dot)iisc(dot)ernet(dot)in>, PGSQL <pgsql-php(at)postgresql(dot)org>
Subject: Re: Copy column contents
Date: 2002-07-24 06:08:11
Message-ID: 5.1.0.14.0.20020724160622.0365caf0@cooee.cybersydney.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

Hi,

> I have a database table with 8 fields and i want to add a new
>column and copy the contents of one column to new column. if i try using
>select and insert number of rows is duplicating and insertion is going to
>end. how do i insert that contents to same row.

Almost right, use update instead of insert:

UPDATE table SET name = title;

HTH,
Chris.

Browse pgsql-php by date

  From Date Subject
Next Message Christopher Kings-Lynne 2002-07-24 06:47:43 Re: Copy column contents
Previous Message arun kv 2002-07-24 05:58:53 Copy column contents