db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zorro <hz0...@gmail.com>
Subject Re: accessing records problem
Date Mon, 10 Feb 2014 16:16:03 GMT
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>



Mime
View raw message