File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Trying to grab the last record. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

Trying to grab the last record.

Justin Char
Ranch Hand

Joined: Mar 05, 2007
Posts: 76
I can grab all sql and put them in desc order.
Then I try to run the code through until it gets to the last Admin key in the series and hold that record and write to transaction file.
Except it gives me all the records not just the 07D one. It gives me all records in the series not just the last one. I need some serious help.
marc weber

Joined: Aug 31, 2004
Posts: 11343

Please don't post duplicates. Your original post has been moved to the JDBC forum. Please continue there.

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
I agree. Here's the link:
subject: Trying to grab the last record.
Similar Threads
SQL Server 2000 Database Connection using JDBC
Problems regarding MS JDBC Driver and JTDS-JDBC Connectivity for MS SQL Server 2000
Trying to grab the last record.
using more than one sql statements in a preparedstatement
cannot find javax/crypto/spec/SecretKeySpec class inTomcat 6