%ROWTYPE and insert

From: Larry Rosenman <ler(at)lerctr(dot)org>
To: pgsql-sql(at)postgresql(dot)org
Subject: %ROWTYPE and insert
Date: 2003-05-09 16:10:55
Message-ID: 106230000.1052496655@lerlaptop.iadfw.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

If I have a trigger that needs to write both the old and new rows, as well
as additional
columns, can I use a %ROWTYPE variable on the end of the insert in
PL/pgSQL?

Thanks,
LER

--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

Browse pgsql-sql by date

  From Date Subject
Next Message Manfred Koizar 2003-05-09 16:47:22 Re: does this require a stored procedure?
Previous Message SZŰCS Gábor 2003-05-09 15:31:42 Re: "too clever" when creating SQL functions