Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 12890

updating result set in a single statement

$
0
0

Hello All,

Is it possible to update a result set in a single query?

 UPDATE (SELECT * FROM [TestEnvironment].[dbo].[Table_1]) as a
 SET a.col1 = 'abcd' WHERE a.col2=1



Thanks and Regards, Readers please vote for my posts if the questions i asked are helpful.


Viewing all articles
Browse latest Browse all 12890

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>