Hi,
is there any idea about creating column names dynamically within a
select statement and without stored procedures?
We have some tables that have column names that consist of chars and
numbers i.e.:
Col0001, Col0002... Now I would like to have a function that returns
the column name Col0001 if i call that function i.e. myfunc(1).
I know it is possible with concat(Col000,myVariable) but DB2 does not
recognice the return value as a column name.
thanks
Michael