Ci dessous extraits de la doc qui expliquent pour le resultset qu'un
executequery n'est jamais null, et que le curseur est positionn� � l'origine
"before the first row"


Jean-Claude

=========================
executeQuery( [in] string sql) raises(SQLException ); 

Description  : executes a SQL statement that returns a single ResultSet. 
Parameter sql : the SQL statement which should be executed 
Returns : a ResultSet that contains the data produced by the query; never
NULL 
Throws : SQLException if a database access error occurs.  

========================
next()  raises( SQLException ); 

Description : moves the cursor down one row from its current position. 
A ResultSet cursor is initially positioned before the first row; the first
call to next makes the first row the current row; the second call makes the
second row the current row, and so on. 

If an input stream is open for the current row, a call to the method next
will implicitly close it. The ResultSet's warning chain is cleared when a
new row is read. 

Returns : true if successful 
Throws : SQLException if a database access error occurs. 
========================

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Répondre à