Thread: ROWTYPE inserts

ROWTYPE inserts

From
chrisj
Date:
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.