Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

"invalid column name" using resultset.getString()???

843854Aug 13 2002 — edited Aug 14 2002
I had a sql query against oracle db:

select table1.field1, table1.field2, table2.field3
from table1, table2
where table1.field1=table2.field1;

i got a valid resultset and i can enum the resultset by rs.getString(colnum). However, when i try to use rs.getString(table1.field1), i get a sql exception: "invalid column name". has anybody seen this before?

TIA
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 11 2002
Added on Aug 13 2002
5 comments
537 views