Re: [java-list] Número_de_linhas_em_um_ResultSet.

2002-04-22 Por tôpico Sven van ´t Veer
Se tiver 10 linhas no ResultSet tudo bem. mas o que se faz quando tiver 10.000.000 linhas no resultset. Eu te garanto que select count (*) seria mais ou menos 1.000.000 vezes mais veloz. Andr Zambelli wrote: [EMAIL PROTECTED]"> Michel, acredito que no exista nenhum mtodo que retorne o

Re: [java-list] Número_de_linhas_em_um_ResultSet.

2002-04-22 Por tôpico Michel Bertrand
(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE); Valeu mesmo pela força ! Michel. - Original Message - From: André Zambelli To: [EMAIL PROTECTED] Sent: Thursday, April 18, 2002 6:47 PM Subject: Re: [java-list] Número_de_linhas_em_um_ResultSet. Michel, acredito que não exista

Re: [java-list] Número_de_linhas_em_um_ResultSet.

2002-04-19 Por tôpico André Zambelli
Michel, acredito que não exista nenhum método que retorne o número de registros usando o result set de java.sql.Estou usando a função abaixo para resolver esse problema. private int recordCount() throws SQLException {int recordCount = 0;if (resultSet.first()) {do {recordCount++;} while