Solved

How can I insert this "ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE" in PREPAREDSTATEMENT?

Posted on 2008-10-21
2
776 Views
Last Modified: 2010-05-18
How can I insert this "ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE" in PREPAREDSTATEMENT?
PreparedStatement stmt = conn.prepareStatement("SELECT * FROM inventorytable");
            ResultSet uprs; 
            uprs=stmt.executeQuery();

Open in new window

0
Comment
Question by:glynco
  • 2
2 Comments
 
LVL 20

Expert Comment

by:chaitu chaitu
ID: 22773555
PreparedStatement stmt = connection.prepareStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
                uprs= stmt.executeQuery("SELECT * FROM inventorytable");
0
 
LVL 20

Accepted Solution

by:
chaitu chaitu earned 500 total points
ID: 22773601
sorry above post was wrong
PreparedStatement stmt = connection.prepareStatement("SELECT * FROM inventorytable", java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE, java.sql.ResultSet.CONCUR_UPDATABLE);

Open in new window

0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
maven project error 5 56
Windows 10 IE Certificate Issue 10 47
hibernate example using maven 12 42
ejb on wildfly 5 20
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This video teaches viewers about errors in exception handling.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question