I have a multidimensional array like this one:
coeficiente VARCHAR[2][2];
What i have stored in this array is this information:
{{"uwu","2"},{"owo","5"}}
I have another 2 variables called:
variable1 VARCHAR;
variable2 VARCHAR;
I want to save the "2" into the variable1, and the "5" into variable2 from this multidimensional array content example.
How can i do that?
I was thinking in maybe a for loop, but i still dunno how iterate inside of an ARRAY[][] structure in plpgsql.
The closest examples I could reach in internet were:
stack overflow. But they store an array out of a multidimensional array. I only need to get the variable inside of it.
Postgres documentation. But it doesn't explain how to get inside of one specific "slot".