Explore Topics

CRUD Operations with JDBC

CRUD stands for Create, Read, Update, and Delete – the four basic operations used to interact with a database. Using JDBC (Java Database Connectivity), we can perform these operations to manage your database records efficiently.

Create: Inserting Data

To insert data into a database, we use the INSERT SQL statement.

Read: Retrieving Data

To retrieve data, we use the SELECT SQL statement. We can use ResultSet to fetch the data from the result set.

Update: Modifying Data

To update existing records, the UPDATE SQL statement is used.

Delete: Removing Data

To delete data, we use the DELETE SQL statement.