Meaningless Drivel is fun!
The moose likes JDBC and Relational Databases and the fly likes question regarding getInt method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "question regarding getInt method " Watch "question regarding getInt method " New topic

question regarding getInt method

Prasad Kharkar
Ranch Hand

Joined: Mar 07, 2010
Posts: 446

I am really gone mad due to the behavior of the code here
I have two columns both having data types as number and I am retrieving them in java code for railway reservation project

The column name is same
and it works for the first line but not for second
can anyone tell why does it happen?
and yes
giving the index does not work also please help

SCJP 6 [86%], OCPWCD [84%], OCEJPAD [83%]
If you find any post useful, click the "plus one" sign on the right
Jan Cumps

Joined: Dec 20, 2006
Posts: 2565

Show us how you created the sql statement.

OCUP UML fundamental and ITIL foundation
Prasad Kharkar
Ranch Hand

Joined: Mar 07, 2010
Posts: 446

I forgot to add the column name in the query..
and its because you asked me to give the query
thank you Jan
I agree. Here's the link:
subject: question regarding getInt method
It's not a secret anymore!