7 messages in org.openoffice.fr.progRE: [prog] Resultset non nul pour une...
FromSent OnAttachments
Martin blaizotMay 12, 2005 6:54 am 
Jean...@i-carre.netMay 12, 2005 7:24 am 
Jean...@i-carre.netMay 12, 2005 7:40 am 
Bernard MarcellyMay 12, 2005 7:59 am 
Martin BlaizotMay 12, 2005 11:35 am 
mblaizotMay 12, 2005 11:39 am 
Bernard MarcellyMay 12, 2005 12:30 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:RE: [prog] Resultset non nul pour une table videActions...
From:Jean...@i-carre.net (Jean@i-carre.net)
Date:May 12, 2005 7:40:06 am
List:org.openoffice.fr.prog

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. ========================