Appendix F: Java API

Overview

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.



Mastering MySQL 4
Mastering MySQL 4
ISBN: 0782141625
EAN: 2147483647
Year: 2003
Pages: 230
Authors: Ian Gilfillan

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net