Re: Copy column contents

Поиск
Список
Период
Сортировка
От Chris
Тема Re: Copy column contents
Дата
Msg-id 5.1.0.14.0.20020724160622.0365caf0@cooee.cybersydney.com.au
обсуждение исходный текст
Ответ на Copy column contents  (arun kv <arun@library.iisc.ernet.in>)
Список 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 по дате отправления:

Предыдущее
От: arun kv
Дата:
Сообщение: Copy column contents
Следующее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: Copy column contents