I have a table in which i want to update a multiple rows. the row data is like this:
Cars/Audi/Norway/model1/sports.Jpeg
Cars/Audi/Norway/model1/classic.Jpeg
Cars/Audi/Norway/model1/v8.Jpeg
Cars/Audi/Norway/model1/v6.Jpeg
now i want only to update the model1, let say i want to make it model two. so how can i do it in just one query? i am using this query:
string path="some string";
string name = "some string";
("select replace(filepath,'" + path + "','" + name + "')
so it seem like
Cars/Audi/Norway/model10/sports.Jpeg
Cars/Audi/Norway/model10/classic.Jpeg
Cars/Audi/Norway/model10/v8.Jpeg
Cars/Audi/Norway/model10/v6.Jpeg
any idea?