How to write mysql update query for updating multiple rows of datagridview
in single statement by passing parameters and then executing all together in c#.net
windows application
for example create update query like is given below
foreach(DatagridViewRow dr in datagridview)
{
sql = "update table1 set name=@name where id=@id; update table1 set name=@name where id=@id; update table1 set name=@name where id=@id;"
}
How to create a sql query with parameters? So that after creation of query; we can execute it together to make changes in multiple rows.