JDBC Statement Interface


Prev Tutorial Next Tutorial

Statement Interface in JDBC

The Statement interface provides methods to execute queries with the database.

Method of Statement Interface

methodDescription
1public ResultSet executeQuery(String sql)Used to execute SELECT query. It returns the object of ResultSet.
2public int executeUpdate(String sql)Used to execute specified query, it may be create, drop, insert, update, delete etc.
3public boolean execute(String sql)Used to execute queries that may return multiple results.
4public int[] executeBatch()Used to execute batch of commands.

Prev Tutorial Next Tutorial

Advertisements




Download Projects

Advertisements

FREE Online Google Play APK Downloader

Buy APP Installs, Buy 100% Genuine Installs