Search Postgresql Archives

ROWTYPE inserts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux