The world's most popular open source database
Contact a MySQL Representative
Login | Register
Examples of using Connector/J are located throughout this document, this section provides a summary and links to these examples.
Example 26.1, âObtaining a connection from the DriverManagerâ
DriverManager
Example 26.2, âUsing java.sql.Statement to execute a SELECT queryâ
SELECT
Example 26.3, âStored Proceduresâ
Example 26.4, âUsing Connection.prepareCall()â
Connection.prepareCall()
Example 26.5, âRegistering output parametersâ
Example 26.6, âSetting CallableStatement input parametersâ
CallableStatement
Example 26.7, âRetrieving results and output parameter valuesâ
Example 26.8, âRetrieving AUTO_INCREMENT column values using Statement.getGeneratedKeys()â
AUTO_INCREMENT
Statement.getGeneratedKeys()
Example 26.9, âRetrieving AUTO_INCREMENT column values using SELECT LAST_INSERT_ID()â
SELECT LAST_INSERT_ID()
Example 26.10, âRetrieving AUTO_INCREMENT column values in Updatable ResultSetsâ
Updatable ResultSets
Example 26.11, âUsing a connection pool with a J2EE application serverâ
Example 26.12, âExample of transaction with retry logicâ
Add your own comment.
User Comments
Add your own comment.