ROWTYPE inserts - Mailing list pgsql-general

From chrisj
Subject ROWTYPE inserts
Date
Msg-id 19898302.post@talk.nabble.com
Whole thread Raw
List pgsql-general
In the 8.3 manual section 38.3.3 it shows a great short cut using ROWTYPEs
for selects:

CREATE FUNCTION merge_fields(t_row table1) RETURNS text AS $$
DECLARE
   t2_row  table2%ROWTYPE;
BEGIN
SELECT * INTO t2_row FROM table2 WHERE ... ;

It seems to me there should be a corresponding short cut using ROWTYPEs for
inserts, but I can't seem to find it, does one exists??
--
View this message in context: http://www.nabble.com/ROWTYPE-inserts-tp19898302p19898302.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


pgsql-general by date:

Previous
From: "Grzegorz Jaśkiewicz"
Date:
Subject: create rule on select question
Next
From: "c k"
Date:
Subject: logging SQL statements