Hello,
I'm new to PL/PgSQL. Although I'm more or less familiar with other programing languages, including general-purpose SQL, I feel like the first man here.
I want to load a table into an array to arrange the fields new (like a pivot table) and perform some calculations in dependence of a specific field value. But I don't manage to get over the probably very simple basic stuff. I also fail getting a clue from the docs.
Could anyone please provide a _very_simple_ example which way this is usually done?
Lets say I have a table:
table_name with columns of different datatypes:
t_id(integer), parameter(varchar(50)), value(number(n,m))
Now I want to read all datasets into an array and give just all datasets from the array back to the screen.
Appreciating your help,
Torsten