What is execute(), executeUpdate() and executeQuery()
methods?
Answer Posted / bhoopesh alladi
execute()- is for invoking the functions or stored
procedures of SQL by the CallableStatement.
executeUpdata()- is for the operations such as insert,
update or delete on SQL by PreparedStatement, Statement.
executeQuery() - is for operation select of Sql by
PreparedStatement or Statement.
| Is This Answer Correct ? | 69 Yes | 21 No |
Post New Answer View All Answers
What is the advantage of namedparameterjdbctemplate?
What is database deadlock ?
What is odbc and jdbc in dbms?
How do I set properties for a JDBC driver and where are the properties stored?
What are the different types of resultset?
Write a program JDBCcode forfetching student database with SQL.
Describe the steps needed to execute a sql query using jdbc.
What are the three basic components of the odbc architecture?
How can I get information about foreign keys used in a table?
What is SQL Warning? How to retrieve SQL warnings in the JDBC program?
What is jdbc and its advantages?
What are the jdbc api components?
How to connect multiple database in jdbc?
How can we execute stored procedures using callablestatement?
What is the use of callablestatement? Name the method, which is used to prepare a callablestatement.