Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.databases > #33
| From | "Lew" <lew@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: Count items in reslut |
| Message-ID | <4dWdnWLXD_fCh4zVnZ2dnUVZ_ovinZ2d@comcast.com> (permalink) |
| Newsgroups | comp.lang.java.databases |
| References | <67c33oF2nukhoU1@mid.individual.net> |
| Date | 2011-04-27 15:21 +0000 |
| Organization | TDS.net |
To: comp.lang.java.databases Uwe Seimet wrote: > 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. Depending on the semantics of the transaction type in which you wrap the multiple statements. -- Lew --- * 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 | 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