Query to Update Multiple Rows | Updating Multiple Rows using Join

Update AdminMaster

set Username=b.Username,

Password=b.Password

from AdminMaster as a

join @TempAdmin b on a.id=b.id



//@TempAdmin is Temporary table that we can pass on stored procedure

Comments

Popular posts from this blog

Uploading Image to Sql Server Image Datatype in asp.net using fileupload Control

Get Running Sum of Query SQL Query