Re: Copy entire row on elete

Поиск
Список
Период
Сортировка
От Mike Nolan
Тема Re: Copy entire row on elete
Дата
Msg-id 200405062145.i46LjbGn016358@gw.tssi.com
обсуждение исходный текст
Ответ на Copy entire row on elete  (Josué Maldonado <josue@lamundial.hn>)
Ответы Re: Copy entire row on elete  (Josué Maldonado <josue@lamundial.hn>)
Список pgsql-general
> 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

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

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: 7.2 or 7.4 for critical data?
Следующее
От: Josué Maldonado
Дата:
Сообщение: Re: Copy entire row on elete