Skip to content
Advertisement

How to insert the result in the desired row? SQL Server

I need the result that I got to be inserted in the right row.

That is, instead of WHERE id_prod = 1, there was something that inserted the desired result in all rows.

I’m not sure I made myself clear, but I hope that you will understand.

Advertisement

Answer

I think you want

There is no need to use a variable or a query to assign the value to it.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement