![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have the following message: ERROR: a column definition list is required for functions returning "record" CREATE OR REPLACE FUNCTION test() RETURNS SETOF record AS make this |
|
' declare parent integer; rec RECORD; begin ... a "SELECT INTO parent ..." giving a value to the variable parent ... FOR rec IN SELECT ech_id from data.sp_ech_recurs_desc_a(parent) LOOP RETURN NEXT rec; and make this |
![]() |
| Thread Tools | |
| Display Modes | |
| |