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

Google Advertisements
Download Projects

Google Adsense Advertisements

Buy 3 Year Old Domain, Tutorialday.com, SeosmoTools.com @$200

Buy This Ad Space @$50 per Month, Ad Size 300X250 Contact on: hitesh.xc@gmail.com WhatsApp no. 8882538826

Yahoo Advertisements