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

Win a copy of Elasticsearch in Action this week in the Big Data forum!
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: 2531

Show us how you created the sql statement.

OCUP UML fundamental and ITIL foundation
youtube channel
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
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: question regarding getInt method