Creating PreparedStatement
s
Lines 28–29 invoke Connection
method prepareStatement
to create the Prepared-Statement
selectAllPeople
that selects all the rows in the Addresses
table and sorts them by last name, then by first name. Lines 33–35 create the PreparedStatement
selectPeopleByLastName ...
Get Java How to Program, Early Objects, 11th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.