|
The Toolbox JDBC driver implements ResultSet updates using UPDATE ... WHERE statements. Therefore, the questions you ask really relate to the AS/400 database, not just JDBC. According to the "DB2 UDB for AS/400 SQL Reference", you can't do updates when using an ORDER BY clause. However, it says nothing about the WHERE clause, so I suspect that will work as you expect. You can dig into all the gory details in the SQL reference. - Clif _______________________________________ Clifton M. Nock (cnock@us.ibm.com) AS/400 Toolbox for Java ---------------------- Forwarded by Dave Wall/Rochester/IBM on 04/07/2000 07:57 AM --------------------------- Pluta@nexgensoftware.com on 04/05/2000 11:15:55 AM Please respond to JAVA400-L@midrange.com To: JAVA400-L@midrange.com cc: Subject: RE: AS/400 ToolBox JDBC 2.0 using scrolling a ResultSet " (...) (concise yet detailed explanation of how to make a ResultSet updateable) (...) The ResultSet will be updateable." ------------ Now, Clif, what happens if you change a field that would have caused the ResultSet's order to change? Say there's an ORDER BY in the list... does that record just sort of stay there? Similarly with a WHERE clause... if you change a record so that it no longer fulfills the WHERE clause, does it stay there too? In fact, I'd guess the ResultSet is oblivious to changes made by other jobs as well; that is, additions and deletions by other programs can't be seen without re-creating the ResultSet - in that manner, the ResultSet acts like an OPNQRYF. I'm guessing the answer to all the above questions is "yes", but it would be nice to know. As many people know, I'm not a big fan of updating via SQL (except maybe for big "UPDATE ... WHERE" type jobs), so I don't know much about it, and I'm just learning about scrolling ResultSets. +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: joe@zappie.net +--- +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: joe@zappie.net +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.