I am attempting to access a result set from a query that has the same column name in both tables. This is on a DB2 database using WebLogic 8.
for example:
select * from TABLE_A A, TABLE_B B where A.columnname = B.columnname
when I attempt to access the result set:
statement.execute();
ResultSet rs = statement.getResultSet();
rs.next();
rs.getDouble("A.column");
I get DB2Exception: [IBM][
JDBC Driver] CLI0611E Invalid column name. SQLSTATE=S0022
I also tried fully qualifying the name USER.TABLE_A.columnname, but I received the same error.
Any ideas?
thanks,
Dave