468,289 Members | 1,867 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,289 developers. It's quick & easy.

Retrieving single value from database

1
how to retrieve single value form database without using result set.
like i need only integer max(acc_id) from database and need to store in a variable
Feb 1 '08 #1
2 2426
r035198x
13,262 8TB
how to retrieve single value form database without using result set.
like i need only integer max(acc_id) from database and need to store in a variable
Why don't you want to use a resultset?
Feb 1 '08 #2
BigDaddyLH
1,216 Expert 1GB
If you are using the JDBC, I see no way around using a ResultSet -- in your case it will have one row and one column. Bite the bullet and write the code.
Feb 1 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

By using this site, you agree to our Privacy Policy and Terms of Use.