tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Einfeldt <ralph.einfe...@uptime-isc.de>
Subject AW: Problems with ResultSet
Date Wed, 30 May 2001 06:19:31 GMT

It can happen with any driver. 

That's what JDBC API doc tells:

"For maximum portability, result set columns within each row 
 should be read in left-to-right order, and each column should 
 be read only once."

> -----Urspr√ľngliche Nachricht-----
> Von: Guido Medina [mailto:guido@ns2.iiac.net]
> Gesendet: Mittwoch, 30. Mai 2001 07:38
> An: tomcat-user@jakarta.apache.org; moinanjum@yahoo.com
> Betreff: Re: Problems with ResultSet
<snip/>
> It means that you cannot do the follow with MS Access:
> 
> Statement st = con.createStatement();
> ResultSet rs = st.executeQuery("......");
> while (rs.next()) {
>    out.println(String a = rs.getString(1));
>    ...
>    ...
>    ...
>    out.println(String a = rs.getString(1));
> }
<snip/>

Mime
View raw message