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!

Resultset: getString (String col_name)

843859Dec 29 2006 — edited Jan 1 2007
Hi All,
I have this question abt resultset's getString method.

say, my SELECT query is: SELECT col1, col2, col3, .......

now, if I use the getString(String col_name), is it necessary to call the column names in sequence: col1, col2, col3. ?

seems bizarre, but thats what I observe. Doesnt it defeat the purpose of using column names rather than indices ?

Or am I missing something else?

best,
parsifal
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 29 2007
Added on Dec 29 2006
7 comments
331 views