Re: Copy entire row on elete

From: Josué Maldonado <josue(at)lamundial(dot)hn>
To: Mike Nolan <nolan(at)gw(dot)tssi(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Copy entire row on elete
Date: 2004-05-06 21:46:56
Message-ID: 409AB250.7030606@lamundial.hn
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2004-05-06 22:21:24 Re: regexp replace?
Previous Message Mike Nolan 2004-05-06 21:45:36 Re: Copy entire row on elete