Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Databases > Re: Count items...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 4 Topic 3730 of 3800
Post > Topic >>

Re: Count items in re****set?

by Lew <lew@[EMAIL PROTECTED] > Apr 24, 2008 at 07:40 PM

Uwe Seimet wrote:
> Donkey Hot wrote:
> 
>> ResultSet rs ;
>> int count ;
>>
>> ....
>>
>> count = rs.getInt(1) ;
> 
> One should probably add that this row count cannot be used to determine 
> the number of rows of a subsequent SELECT statement that selects actual 
> row data (not just the count) from the same table. Between the two 
> SELECT statements the number of rows may have changed.

Depending on the semantics of the transaction type in which you wrap the 
multiple statements.

-- 
Lew
 




 4 Posts in Topic:
Count items in reslutset?
WJ <wjz@[EMAIL PROTECT  2008-04-24 19:52:11 
Re: Count items in reslutset?
Donkey Hot <spam@[EMAI  2008-04-24 18:07:18 
Re: Count items in reslutset?
Uwe Seimet <Uwe.Seimet  2008-04-24 20:50:32 
Re: Count items in reslutset?
Lew <lew@[EMAIL PROTEC  2008-04-24 19:40:15 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 17:32:01 CDT 2008.