I am trying to use the XMLUPDATE stored procedure. Installed fine, and
seems to work great if I execute the statement from a sql query using
the controll center.. Doesn't work from java however. I get a 07004
error that says I must in clude a USING or INTO clause in my dynamic
query.
I inserted the USING="SQL" clause (as the documentation stated
somewhere) into the XML query but that didn't do anything.
Can anyone help me with this? the query works fine on its own.. so I'm
sure its not something really hard to correct.
Thanks :)
THE QUERY:
CALL DB2XMLFUNCTIONS.XMLUPDATE(
'<updates>
<update using=\"SQL\" action=\"append\" col=\"1\" path=\"/WishList\">
<Item>ne******@yahoo.com</Item>
</update>
</updates>',
'select wishlist from users where users_id=1',
'update users set wishlist=? where users_id=1', ?, ?)