Why the following code is not working:
UPDATE ta SET ta.val =
(SELECT val FROM tb
WHERE ta.id like (tb.id || '%' ))
SQL0132N A LIKE predicate or POSSTR scalar function is not valid because the
first operand is not a string expression or the second operand is not a
string. SQLSTATE=42824
If I change the tb.id in the "||" expression to a string, the above
code will work.
You guys have a explanation to defense it this time? :-) Any work
around? Thanks.
--
Tong (remove underscore(s) to reply)
*niX Power Tools Project: http://xpt.sourceforge.net/
http://members.xoom.com/suntong001/
- All free contribution & collection