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 2 of 4 Topic 3730 of 3800
Post > Topic >>

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

by Donkey Hot <spam@[EMAIL PROTECTED] > Apr 24, 2008 at 06:07 PM

WJ <wjz@[EMAIL PROTECTED]
> wrote in news:e1c38$4810c8fc$3ec2c5b8$6409
@[EMAIL PROTECTED]
> Hi all,
> 
> Is it possible to get the number of rows in a resultset using SQL?
> 
> If I execute a statement like: SELECT COUNT(*) FROM table1 WHERE ID=12,
> 
> I dont know how to assign the result to an integer...
> 
> Thanx,
> WJ
> 

ResultSet rs ;
int count ;

.....

count = rs.getInt(1) ;
 




 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 23:10:53 CDT 2008.