File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Select Union + preparedStatement() Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Select Union + preparedStatement()" Watch "Select Union + preparedStatement()" New topic
Author

Select Union + preparedStatement()

Isaias C. Barroso
Ranch Hand

Joined: Jan 22, 2002
Posts: 165
Hi all,
I've a problem with preparedStatement() + Select Union when i utilize TYPE_SCROLL_INSENITIVE and TYPE_SCROLL_SENITIVE.
If my PreparedStatement is pstmt = conn.prepareStatement(MyQueryWithUnion), its work, but if it is conn.prepareStatement(MyQueryWithUnion, ResultSet.TYPE_SCROLL_INSENITIVE, ResultSet.CONCUR_READ_ONLY) don't work.
I'm utilizing jdbc dbc + MSACCESS Driver.
Anybody have a solution?
Thanks


Isaias
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Select Union + preparedStatement()
 
Similar Threads
SQL Current Time
PreparedStatement related query
PreparedStatement ???
how to get dynamic data from the oracle back end
JDBC problem:Too few parameters. Expected 1