🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1115

Re: about JDBC2 Resultset

#1115
From: Tor Iver Wilhelmsen
Date: Fri, 10 May 2002 07:24
10 lines
1354 bytes
<zhangbwnewyork@hotmail.com> writes:

> when i open a resultset object,how can i know how many records returned from
> database,i look for many documentations & books,but can't find any key,i am
> a beginner,any help will be appricated

The ResultSet doesn't know; in many cases it's just a reflection of a
sql cursor on the data, to speed up availability: Thus, you get one
row at a time until you reach the end, and the number of rows will be
known at that time (if you have counted).
Technical Details
Message-ID: <uit5wa2j6.fsf@ergo.no>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.online.be!fu-berlin.de!news.rhrz.uni-bonn.de!RRZ.Uni-Koeln.DE!nntp.cs.uni-magdeburg.de!PeerFeed.KWeb.on.ca!dnews
References: <3cdb32d3_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,d024da49e4edee17
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2002-05-10 00:32:14 PST
Sender: towi@SDSA3850
Newsgroups: borland.public.jbuilder.java.api
Subject: Re: about JDBC2 Resultset
References: <3cdb32d3_1@dnews>
From: Tor Iver Wilhelmsen <tor.wilhelmsen@ergo.no>
Date: 10 May 2002 09:24:29 +0200
Message-ID: <uit5wa2j6.fsf@ergo.no>
Lines: 10
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
NNTP-Posting-Host: 139.105.6.133
X-Trace: dnews 1021015467 139.105.6.133 (10 May 2002 00:24:27 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.online.be!fu-berlin.de!news.rhrz.uni-bonn.de!RRZ.Uni-Koeln.DE!nntp.cs.uni-magdeburg.de!PeerFeed.KWeb.on.ca!dnews