What are the different types of statements?

Answer Posted / chandrarekha

Statement interface----createStatement() method is useful
to create statement object and to execute simple queries...

PreparedStatement interface---derived from the Statement
interface...preparestatement() method used to create
preparedstatement object and used to execute queries with
unknown parameters or where in the parameters are provided
at the run-time

CallabaleStatement interface----derived from the
preparedstatement interface and helpful in executing stored
procedures...prepareCall() method is used to create the
callabalestatement object

Is This Answer Correct ?    45 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between executing, executequery, executeupdate in jdbc?

740


What is the major difference between java.util.date and java.sql.date data type?

655


What is an encrypted internet connection?

678


How to set NULL values in JDBC PreparedStatement?

724


What is jdbc driver for sql server?

694


What are the jdbc statements?

733


Is jdbc connection secure?

670


How to achieve JDBC Connection Pooling using JDBC DataSource and JNDI in Apache Tomcat Server?

713


What does the jdbc resultset interface?

717


How to test jdbc connection to sql server?

688


Why resultset is used in java?

676


There is a method getColumnCount in the JDBC API. Is there a similar method to find the number of rows in a result set?

810


Which package is used for jdbc application?

726


What are the components of jdbc?

747


State the three different ways in which you can create a table?

718