2 messages in org.openoffice.fr.progRe: [prog] Objet RowSet vs ResultSet
FromSent OnAttachments
Thibault VataireJul 31, 2009 2:47 am 
François BreizhJul 31, 2009 4:37 am 
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] Objet RowSet vs ResultSetActions...
From:François Breizh (fran@orange.fr)
Date:Jul 31, 2009 4:37:20 am
List:org.openoffice.fr.prog

Thibault Vataire a écrit :

Bonjour,

Voici un exemple de mise à jour d'une table à partir d'un RowSet :

sub testRowset()

dim rowSet as object

rowSet = createUnoService("com.sun.star.sdb.RowSet") rowSet.DataSourceName = "fournisseurs_fruits" rowSet.commandType = com.sun.star.sdb.CommandType.COMMAND rowSet.command = "SELECT * FROM soc_prod" rowSet.execute() rowSet.moveToInsertRow() rowSet.updateString(rowSet.findColumn("id_societe"), 6) rowSet.updateString(rowSet.findColumn("id_produit"), 3) rowSet.insertRow()

end sub

Je me suis inspiré d'un exemple en Java du Developer's Guide trouvé à cette
adresse :

http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/Database/Example:_Querying_the_Bibliography_Database

Cordialement,

T. Vataire

Trugare mad Merci beaucoup