Hi! How to get the recordcount(I mean fetched records from the database).I know that there is a method called getFetchSize() in ResultSet.But it's giving the fetchsize is 1.How can it be possible? Regards. Vijaya.
The fetch size is *not* the total number of rows in the ResultSet, but the number of rows that get fetched at one time. It's for nothing more than performance optimization.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Joined: Nov 02, 2002
Hi! ThanQ! U mean to say that we can set the fetchsize explicitly.By default it fetches 1.Can we set more that one.I heard that we can fetch one by one only.I tried by using setFetchSize(int rows).But it's giving exception. One more doubt regarding resultset scrolling.By default recordset is TYPE_FORWARD_ONLY .If resultset is TYPE_SCROLL_INSENSITIVE then we can get the recordcount.I'm unable to set this cursor.Can any one clear this . Regards. Vijaya.