Re: Copy column contents - Mailing list pgsql-php

From Chris
Subject Re: Copy column contents
Date
Msg-id 5.1.0.14.0.20020724160622.0365caf0@cooee.cybersydney.com.au
Whole thread Raw
In response to Copy column contents  (arun kv <arun@library.iisc.ernet.in>)
List 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.


pgsql-php by date:

Previous
From: arun kv
Date:
Subject: Copy column contents
Next
From: "Christopher Kings-Lynne"
Date:
Subject: Re: Copy column contents