If you need to switch between different databases using JDBC, you can store different database JDBC connection related information in a properties file. This example will show you how to […]
When you have a lot of insert or update sql commands to execute, you can use java.sql.Statement addBatch(String sqlCmd) method to group them together and then run java.sql.Statement executeBatch() to commit all […]
java.sql.DatabaseMetaData interface provide methods to get meta data of your connected database server. Below examples will show you how to do that one by one.
This article will show you how to use java.sql.Statement to execute insert, update, delete and select sql dml commands with examples.
This article contains java example about how to use java.sql.Statement to execute create mysql table sql scripts.
This article will show you examples about how to use JDBC to connect to mysql server. 1. Download MySQL Server. If your purpose is just for study, you can download […]