Thanks Andy for the reply,
I just that in DB2 book that I have that one of the restrictions when developping SQL triggers
- PREPARE, EXECUTE and EXECUTE IMMEDIATE statements are not allowed in triggers and UDFs. Trigger and UDF SQL is inherently dynamic.
- Stored procedure calls from triggers and UDFs are not currently supported.
So I don't know what's my solution now. If I use your code it will work but it is not what i want to do.
I would like to construct the query string dynamicly then execute the statement.
DECLARE query CHAR;
SET query='column1,colomn2,colomn5';
update toto set (query) = (value1,value2,value5);
And that is not working