sql server - Will SQL update a record if the new values are the same? -


will sql update record if there no change record?

for examople, more efficient replace

update table mytable  set col1 = isnull(col1,'') ... set col100 = isnull(col30,'') 

with

update table mytable  set col1 = isnull(col1,'') ... set col100 = isnull(col30,'')  col1 null or ... col30 null 

yes, attempt overwrite.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

javascript - Preserving URL fragment through CAS sign-on -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -