Le lundi 07 mars 2005 � 12:53 +0100, Jovial a �crit :
Bonjour,
> 'construction de la requ�te d'insertion
> instrSQL = "order by produits "
> 'ajout du nouvel enregistrement
> nbLignesEcrites = maRequete.executeUpdate(instrSQL)
> 'MsgBox("Instruction SQL :" & chr(13) & instrSQL & chr(13) & _
> '"Nombre de lignes �crites : " & nbLignesEcrites)
> DeconnecterSource
> end if
> End Sub
La commande executeUpdate n�cessite un objet d�clar� qui est la req�ete
pr�par�e. Ta d�claration d�finit instrSQL comme une cha�ne et non comme
un objet.
As tu essay� simplement avec "execute" ? Cette commande permet
d'ex�cuter n'importe quel ordre SQL.
Voici ce que j'ai trouv� dans le SDK :
Example
:StarBASIC
pstmt = con.prepareStatement("UPDATE EMPLOYEES SET SALARY = ? WHERE ID
= ?")
pstmt.setDouble(1, 153833.00)
pstmt.setLong(2, 110592)
Only one ResultSet per Statement can be open at any point in
time. Therefore, if the reading of one ResultSet is interleaved
with the reading of another, each must have been generated by
different Statements. All statement execute methods implicitly
close a statement's current ResultSet if an open one exists.
Alex
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]