Bob M schreef op 10-2-2014 13:52:
After the rs = s.executeQuery line I try to print out a message
This message does not get printed out!

OK so if s= null is incorrect, then what should I set s to ?

Bob M
|s = connection.createStatement() in which connection| is the Connection object representing your database connection.

See for instance the tutorial at:
http://docs.oracle.com/javase/tutorial/jdbc/basics/processingsqlstatements.html

Regards,
Harm-Jan Zwinderman

http://Cebuned.svipr.nl/Cebuned.html

|| <http://docs.oracle.com/javase/6/docs/api/java/sql/Connection.html#createStatement%28%29>

Reply via email to