you should have posted this in JDBC Forum. any way does the query printed by System.out.println(query1) gives you result. If yes then make sure you are connected to correct database or check if there is any exception you are ignoring.
Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
Indranil accidentally posted this in a new thread:
Originally posted by Indranil Guha Roy: thanks for reply...but if u could be more specific about the syntax of SELECT statement (i.e how to use column names to retrive data), it would have been more helpfull.
Anyway, moving to JDBC...
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus