adspace
How to update multiple rows with one update statement in ms sql server?
Answer Posted / Anmol Kumar
To update multiple rows with one update statement in MS SQL Server, you can use the WHERE clause to specify the rows that need to be updated. Here's an example:nn```sqlnUPDATE TableNamenSET Column1 = 'New Value', Column2 = 'New Value'nWHERE Condition;n``` Replace `TableName`, `Column1`, `Column2`, and `Condition` with your table name, the column names you want to update, and a condition that specifies which rows should be updated.n
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do I create a trace in sql server?
What are the pros and cons of putting a scalar function in a queries select list or in the where clause?
Can we make the the chages By Using the Sql if u know any function or process please inform me Actuall result: BRK1 Break 1 Part 1 00:01:00:00 60 BRK1 Break 1 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 BRK2 Break 2 Part 2 00:01:00:00 60 BRK2 Break 2 Part 3 00:01:00:00 60 BRK3 Break 3 Part 1 00:01:00:00 60 BRK3 Break 3 Part 2 00:01:00:00 60 Desired O/P: BRK1 Break 1 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 Part 3 00:01:00:00 60
What are the risks of storing a hibernate-managed object in a cache? How do you overcome the problems?
List the ways in which dynamic sql can be executed?
How do I find the sql server version?
If any stored procedure is encrypted, then can we see its definition in activity monitor?
When should you use an instead of trigger?
What are the properties of the transaction?
What is a scheduled job or what is a scheduled task?
What is a view in sql?
How to remove duplicate rows from table except one?
What is sql or structured query language?
How do I start sql server 2017?
do you know how to configure db2 side of the application? : Sql server database administration