|
|
Java uses the well-developed JDBC API for database access. There are two main MySQL drivers: the "official" MySQL Connector/J (what was MM.MySQL), available for download from the MySQL site, and the Caucho MySQL JDBC Driver.
The basic procedure is to instantiate a connection object, a statement object, and then a result set object.
This appendix briefly describes the main methods used for database functionality in Java and provides a simple example for inserting and selecting data.
|
|