Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.databases > #29
| From | "Uwe Seimet" <uwe.seimet@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: Count items in reslut |
| Message-ID | <67c33oF2nukhoU1@mid.individual.net> (permalink) |
| Newsgroups | comp.lang.java.databases |
| References | <Xns9A8ADA910449FSH15SGybs1ysmajw54s5@194.100.2.89> |
| Date | 2011-04-27 15:21 +0000 |
| Organization | TDS.net |
To: comp.lang.java.databases 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. -- ----------------------------------------------------------------------- Dr. Uwe Seimet http://www.linkbylink.net/ --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.databases | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Count items in reslutset? "WJ" <wj@THRWHITE.remove-dii-this> - 2011-04-27 15:21 +0000
Re: Count items in reslut "Donkey Hot" <donkey.hot@THRWHITE.remove-dii-this> - 2011-04-27 15:21 +0000
Re: Count items in reslut "Uwe Seimet" <uwe.seimet@THRWHITE.remove-dii-this> - 2011-04-27 15:21 +0000
Re: Count items in reslut "Lew" <lew@THRWHITE.remove-dii-this> - 2011-04-27 15:21 +0000
csiph-web