What is execute(), executeUpdate() and executeQuery()
methods?
Answer Posted / kundlik
execute():-execute method is used to fire DDL Command means (CREATE,ALTER,DROP Etc) on to the database,It's return type is true or false.
executeUpdate():Its used to fired DML Command on to the database. like (insert,update,delete) etc.its return type is ResultSet.
executeQuery():is used to only retrieve data from database.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are clob and blob data types in jdbc?
How data can be inserted into long row column of database?
What is the reason why we need a jdbcrowset like the wrapper around resultset?
What is jdbc url for mysql?
What is resultset in jdbc with example?
Which package contains jdbc api?
What are the components of jdbc?
please tell me the name and url path for type-4 driver ?
What is a jdbctemplate?
What is jdbc odbc bridge?
Why is jdbc needed?
What is meant by dao?
What is JDBC Transaction Management and why do we need it?
Why prepared statements are faster?
What causes no suitable driver error?