How can i update several rows in a table at once ?

C

Christophe

How can i update several rows in a table at once ?

I use a OleDbConnection.

Perhaps whith a loop ?

Christophe
 
J

Jem

Hi,

Can you be more specific? Do you mean update multiple rows with the same
values? If so, have you tried:

UPDATE mytable SET myfield1=foo, myfield2=bar, ... WHERE key1=value1,
key2=value2, ...

Alternatively, please bear in mind that ADO.NET does not support cursors, so
you will need to use a DataSet.

Jem
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top