plpgsql - How to access to fields of a record type in postgresql without knowing their names? -
I am programming PL / PGSLL programming on this:
cols_to_select: = of According to a set of rules, we select the name of the column 'Selection'. Cols_to_select || 'Tabl' from LOOP - how can I access fields of records without knowing their names? - End loop;
This is a method I have found:
Cols_to_select: = According to a set of rules, we call the name 'select ARRAE' [cols_to_select || '] In the form of AR FIR' tabl 'loop - how can I reach the fields of record without knowing their names? For J. in 1.. NightPaper (IAR, 1) Loop Rise Notices '%', IAR [J]; End loop; End loop; The problem with this solution is that there are different types of columns.
Comments
Post a Comment