Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2008-10-21
2
Medium Priority
?
784 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 2000 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
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 learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Suggested Courses

886 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