Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

inner join update

UPDATE 
    t1
SET 
    t1.c1 = t2.c2,
    t1.c2 = expression,
    ...   
FROM 
    t1
    [INNER | LEFT] JOIN t2 ON join_predicate
WHERE 
    where_predicate;
Source by www.sqlservertutorial.net #
 
PREVIOUS NEXT
Tagged: #join #update
ADD COMMENT
Topic
Name
2+9 =