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

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -