Re: [GENERAL] copying from one table to another

Поиск
Список
Период
Сортировка
От tolik@aaanet.ru (Anatoly K. Lasareff)
Тема Re: [GENERAL] copying from one table to another
Дата
Msg-id 877ll13t7i.fsf@tolikus.hq.aaanet.ru
обсуждение исходный текст
Ответ на copying from one table to another  (Omega Weapon <weapon_77@yahoo.com>)
Список pgsql-general
>>>>> "OW" == Omega Weapon <weapon_77@yahoo.com> writes:

 OW> I have two identical tables -- section and
 OW> temp_section.  I use the section table for keeping
 OW> original values and temp_section for editing.

 OW> How do I copy the values from temp_section to section?

begin;

delete from section;
insert into section select * from temp_section;

commit;


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

Предыдущее
От: Charles Tassell
Дата:
Сообщение: Re: [GENERAL] copying from one table to another
Следующее
От: "Gene Selkov, Jr."
Дата:
Сообщение: Yet another btree gotcha