Java JDBC Examples

This page contains a list of Java JDBC examples for beginners to practices. You can use these examples in your Java projects.

JDBC stands for Java Database Connectivity, which is a standard Java API for database-independent connectivity between the Java programming language and a wide range of databases.


To keep it simple, JDBC allows a Java application to connect to a relational database. The major databases are supported such as Oracle, Microsoft SQL Server, DB2 and many others.

Java JDBC Examples

  1. How to Delete Data from MySQL Table using Java
  2. How to Insert Data in MySQL Table using Java
  3. How to Create Database Table in Java
  4. JDBC DriverManager Example
  5. JDBC PreparedStatement Example
  6. JDBC Statement Example
  7. Java MySQL DataSource Example 
  8. Update Query in MySQL using Java PreparedStatement
  9. Login Example with JSP + Servlet + JDBC + MySQL Database
  10. JSP + JDBC + MySQL Example Tutorial
  11. JSP Form Example with JDBC and MySQL Database
  12. Java JDBC CRUD Example - SQL Insert, Select, Update, and Delete Examples
  13. Java Swing JDBC MySQL Database Example
  14. Java JDBC Connection to HSQLDB Database
  15. JDBC Connection to H2 Database Example
  16. JDBC Connection to PostgreSQL Example
  17. JDBC Connection to Oracle Database Example
  18. JDBC Transaction Management Example
  19. JDBC Delete Query Example
  20. JDBC Select Query Example
  21. JDBC Update Query Example
  22. JDBC Insert Multiple Rows Example
  23. JDBC Create a Table Example
  24. What are different types of JDBC Drivers
  25. Advantages of Hibernate Framework over JDBC
  26. Java PostgreSQL Example
  27. Java H2 Insert Record Example
  28. Java H2 Embedded Database Example
  29. Java H2 Create Table Example


Comments