Home » statement

Tag Archives: statement

JDBC DDL Example

Bipartite Graph

Data Definition Language (DDL) is a unique set of SQL commands that lets you manipulate the structure of the database. In this article, we will try to show how the JDBC DDL mechanism can be applied to a Java application.               1. Introduction It might sound like its own programming language, but Data Definition ...

Read More »

java.sql.BatchUpdateException – How to resolve Batch Update Exception

Bipartite Graph

In this example I will discuss about BatchUpdateException and how to resolve it. This exception is thrown when an error occurs during a batch update operation. It provides (among others) the update counts for all commands that were executed successfully during the batch update. The BatchUpdateException class is a subclass of SQLException, which represents an exception that provides information on ...

Read More »

java.sql.PreparedStatement – Prepared Statement Java Example

Bipartite Graph

In this example, we will discuss the Prepared Statement interface and its usage in Java using examples. This interface creates an object that represents a precompiled SQL statement. This object can then be used to efficiently execute this statement multiple times. The PreparedStatement interface extends the Statement interface, which is used for executing a static SQL statement and returning the ...

Read More »