Re: Copy entire row on elete

Поиск
Список
Период
Сортировка
От Josué Maldonado
Тема Re: Copy entire row on elete
Дата
Msg-id 409AB250.7030606@lamundial.hn
обсуждение исходный текст
Ответ на Re: Copy entire row on elete  (Mike Nolan <nolan@gw.tssi.com>)
Список pgsql-general
El 06/05/2004 3:45 PM, Mike Nolan en su mensaje escribio:

>>I use triggers with plpgsql, now I have a situation I have to copy the
>>entire tuple of a table before it gets deleted to another table. I
>>wonder if is there a way to say:
>
>
> If you have a unique key you could do the following:
>
> INSERT into C select * from old_table where key = OLD.key.
> --
> Mike Nolan
>

Yes, that one worked fine, thanks.


--
Sinceramente,
Josué Maldonado.


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

Предыдущее
От: Mike Nolan
Дата:
Сообщение: Re: Copy entire row on elete
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: regexp replace?