Question
Explain how to Make Updates to the Updatable ResultSets.

Answers

- The JDBC 2.0 API can update rows in a ResultSet using the methods in the Java rather than using a SQL command.- But before doing that, we create a ResultSet object which is updatable.- For doing this, we give the ResultSet CONCUR_UPDATABLE in the createStatement method.Code: Connection con = DriverManager.getConnection("jdbc:mySubprotocol:mySubName");Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);ResultSet uprs = stmt.executeQuery("SELECT COF_NAME, PRICE ");   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q Expand SLISTINET
  • Q What are the drawbacks of linear model?
  • Q How have some stars had time to die since the universe began?
  • Q Explain about stacked canvas views?
  • Q Can you attach an lov to a field at design time?
  • Q You have 100 doors in a row that are all initially closed. You make 100 passes through the doors starting with the first door every time. The first time your visit every first door and then toggle the door (if the door is closed, you open it, if it's open, you close it). The second time you only visit every 2nd door (door #2, #4, #6), the third time, every 3rd door (door #3, #6, #9), etc, until you only visit the 100th door.
  • Q Do all explosions produce carbon dioxide or carbon monoxide?
  • Q What are ways in which revenues and profits can be maximized?
  • Q Describe in detail Saussure’s Structuralism.
  • Q A company has implemented a new client-server enterprise resource planning (ERP) system. Local branches transmit customer orders to a central manufacturing facility. Which of the following would BEST ensure that the orders are entered accurately and the corresponding products are produced? A. Verifying production to customer orders B. Logging all customer orders in the ERP system C. Using hash totals in the order transmitting process D. Approving (production supervisor) orders prior to production
  • Q Receptionist job roles and responsibilities? Receptionist job duties?