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.
Ejemplo 25.1, âObtaining a connection from the DriverManagerâ
DriverManager
Ejemplo 25.2, âUsing java.sql.Statement to execute a SELECT queryâ
SELECT
Ejemplo 25.3, âStored Proceduresâ
Ejemplo 25.4, âUsing Connection.prepareCall()â
Connection.prepareCall()
Ejemplo 25.5, âRegistering output parametersâ
Ejemplo 25.6, âSetting CallableStatement input parametersâ
CallableStatement
Ejemplo 25.7, âRetrieving results and output parameter valuesâ
Ejemplo 25.8, âRetrieving AUTO_INCREMENT column values using Statement.getGeneratedKeys()â
AUTO_INCREMENT
Statement.getGeneratedKeys()
Ejemplo 25.9, âRetrieving AUTO_INCREMENT column values using SELECT LAST_INSERT_ID()â
SELECT LAST_INSERT_ID()
Ejemplo 25.10, âRetrieving AUTO_INCREMENT column values in Updatable ResultSetsâ
Updatable ResultSets
Ejemplo 25.11, âUsing a connection pool with a J2EE application serverâ
Ejemplo 25.12, âExample of transaction with retry logicâ
Ãsta es una traducción del manual de referencia de MySQL, que puede encontrarse en dev.mysql.com. El manual de referencia original de MySQL está escrito en inglés, y esta traducción no necesariamente está tan actualizada como la versión original. Para cualquier sugerencia sobre la traducción y para señalar errores de cualquier tipo, no dude en dirigirse a mysql-es@vespito.com.