Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql update from two different database

update table1
set col2 = T2.col2
from DataBaseName.dbo.table1 as T2
  where table1.ID = T2.ID and
        table1.col2 is null
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sql #update #database
ADD COMMENT
Topic
Name
7+2 =