How in C# to change the values of cells in a column to the SQL table, increasing them 2 times?

0 like 0 dislike
84 views
Hello!
Please tell me how you can change all values (for example, by two times) of table column in database using C# (preferably) or Transact-SQL?
asked by | 84 views

1 Answer

0 like 0 dislike
One sql query
update `table` set `col`=`col`*2, where 1
PS written from memory so errors are possible
answered by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
asked Sep 28, 2018 by dmitrylee
24,509 questions
45,932 answers
0 comments
352 users