how can i move to the last record of recordset
- From: "ashwinijain" <ashwinijain27@xxxxxxxxx>
- Date: 4 Dec 2006 05:28:09 -0800
i have one table in MS. Access in which i am storing company details.
i want to create an unique company id for each company.
so i want to aceess the last row in the table to generate next id
I am using last() method but its throwing sqlexception.
rs=stat1.executeQuery("Select Company_id from Company ");
// Code
if(rs!=null)
{
rs.last();
no=rs.getInt(1) + 1;
}
else
no=1;
.
- Follow-Ups:
- Re: how can i move to the last record of recordset
- From: Till
- Re: how can i move to the last record of recordset
- From: jcsnippets.atspace.com
- Re: how can i move to the last record of recordset
- Prev by Date: Re: Still need help
- Next by Date: Server-side cursors for ResultSets - a pattern? (and what about Oracle?)
- Previous by thread: Still need help
- Next by thread: Re: how can i move to the last record of recordset
- Index(es):