| От | Xavier Bugaud |
|---|---|
| Тема | RE : Nmber of rows in a ResultSet |
| Дата | |
| Msg-id | 94BCF3512BFBD711B79D004005420B1F03F6D8@PMSERVER обсуждение |
| Ответы |
Re: RE : Nmber of rows in a ResultSet
|
| Список | pgsql-jdbc |
> On Fri, 9 Jan 2004, Kris Jurka wrote: > > > In the last JDBC drivers, is there a means to get the number of rows > > directly (without using 'SELECT COUNT(*)' or > 'rs.last();rs.getrow();') ? > > I don't see what's so wrong with rs.last() and rs.getRow(). > Thank you for the response. What is wrong with rs.last() and rs.getRow() is - it requires scrollable cursors in order to get back to the first row - it will certainly slow down the operation in case of huge amount of rows (I don't known how the Postgres driver handle that, so maybe this is wrong... I hope so) Regards -- Xavier Bugaud www.gloptv.com
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера