MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

SQL

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Are ResultSets updateable?
A
Yes, but only if you call the method openCursor() on the ResultSet, and if the driver and database support this option
B
Yes, but only if you indicate a concurrency strategy when executing the statement, and if the driver and database support this option
C
Yes, but only if the ResultSet is an object of class UpdateableResultSet, and if the driver and database support thisoption
D
No, ResultSets are never updateable. You must explicitly execute DML statements (i.e. insert, delete and update) to change the data in the underlying database
Explanation: 

Detailed explanation-1: -Q 10-Which of the following is correct about ResultSet class of JDBC? A-ResultSet holds data retrieved from a database after you execute an SQL query using Statement objects.

Detailed explanation-2: -CONCUR READ ONLY means that the ResultSet can only be read. CONCUR UPDATABLE means that the ResultSet can be both read and updated.

Detailed explanation-3: -22) Which of the following is the correct to register a JdbcOdbcDriver? Explanation: By creating an object to the driver class of the driver software, we can register the driver.

Detailed explanation-4: -Does the JDBC-ODBC Bridge support multiple concurrent open statements per connection? No. You can open only one Statement object per connection when you are using the JDBC-ODBC Bridge.

There is 1 question to complete.