Underground II
Database Access: In Java
Database Access: In Java
Create/Prepare the Statement
PreparedStatement aStatement = con.prepareStatement(“select firstname, lastname from cfexamples where empid = ?”);
aStatement.setInt(1, 2);
Sets the first parameter (?) to the value 2
Finds empid=2
Previous slide
Next slide
Back to first slide
View graphic version
|
Home
|
Photos
|
Maps
|
CF Conf Central
|
Please send comments/questions to
[email protected]