Hi all,
We developed an Java program on AS400 V5R1 machine by
using native DB2 JDBC driver. Then we deploy the
program on an AS400 V4R5 machine, also using native
DB2 JDBC driver. Both matchines use JDK1.2.2. Some
SQL statements are not working on the depolyment
AS400. An example is update record with subselect. A
simplfied SQL is:
update mydb.table1 t1 set t1.name = (select t2.name
from mydb.table2 t2 where t1.id = t2.id);
I got:
[SQL0104] Token . was not valid. Valid tokens: =.
The exactly same SQL works fine on V5R1 machine. So
it should not be the problem of SQL. It seems like the
V4R5 does not accept subselect SQL syntax, since all
simple select, insert, update and delect are working
fine.
What could be wrong? Does we missing any PTFs?
Wayne (Weining) Xu
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com