Copy row from table to table

Поиск
Список
Период
Сортировка
От Kall, Bruce A.
Тема Copy row from table to table
Дата
Msg-id 41BF2765.4080308@mayo.edu
обсуждение исходный текст
Ответы Re: Copy row from table to table
Список pgsql-general
What is the easiest way to copy a particular row from one table to
another (assuming all the columns are exactly the same).  I want to
maintain a table ('backup_table') that has rows I have (or will be)
deleting from my 'original_table'. (Both tables have the same 68 columns).

I've tried

INSERT INTO backup_table SELECT * FROM original_table WHERE id='2305'

COPY seems to only work between tables and files.

Thanks,
Bruce

В списке pgsql-general по дате отправления:

Предыдущее
От: Christian Kratzer
Дата:
Сообщение: Re: increasing max_connections on freebsd
Следующее
От: Együd Csaba (Freemail)
Дата:
Сообщение: Re: Insufficient memory for this operation.