My code is
select column_name from information.schema.columns where table_name='aean'
It returns column names of table aean
.
Now I have declared an array:
DECLARE colnames text[]
How can I store select's output in colnames array.
Is there any need to initialize colnames?
array_agg(column_name, ',')
– jerrymouse Aug 21 '12 at 6:54