In DB2 LUW 'till Version 9 it is not possible to execute dynamic SQL
in a UDF (at least as I understand it; maybe I'm just doing something
wrong). Is this planed to be included in Future Versions? Somebody has
an Idea for a workaround to this?
What I need to do: We have for different customers an individual
customer table, and we'd like a table UDF to return the records of a
customer table based on the ID of a customer. This would allow not to
have to generate dynamic SQL for joining the tables in the
application, but just to call a function which does this for us.
Any ideas or hints would be appreciated.
Regards,
Janick