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

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

Download Projects

Google Adsense Advertisements
Free Classified Site – Bedpage

Yahoo Advertisements