Search
 
SCRIPT & CODE EXAMPLE
 

SQL

sql update from two different database

update table_name1
set column_name = T2.column_name
from database_name.dbo.table_name2 as T2
  where table_name1.ID = T2.ID
Comment

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
Comment

PREVIOUS NEXT
Code Example
Sql :: PDOException: SQLSTATE[HY093]: Invalid parameter numb 
Sql :: sql developer sql worksheet not showing 
Sql :: trigger stock phpmyadmin 
Sql :: execute oracle ash command 
Sql :: formatting code with SQL Developer 
Sql :: java input type sql date 
Sql :: sql data type of query 
Sql :: oracle call a function in a insert statement 
Sql :: select * from mysql.proc 
Sql :: how to make trigger in phpmyadmin 
Sql :: user defined variables in sql 
Sql :: sqlalchemy where in query 
Sql :: error-expression-select-list-not-group-by-nonaggregated-column/ 
Sql :: how to create a new db from dumb file mysql 
Sql :: and and or in where condition 
Sql :: column value should show as latest using sql query 
Sql :: CREATE MULTIPLE FK 
Sql :: how to input data as id in database sql c# 
Sql :: oracle_home sqlplus 
Sql :: Second Step in installing SQL workbench 
Sql :: why we have to set the password for my sql server 
Sql :: create synonym for dblink in oracle 
Sql :: mysql page segment 
Sql :: row_number equivalent MS Access for sequential id By Group (3) 
Sql :: PGSQL dynamic table name 
Sql :: chAnge TABLE name apex oracle 
Sql :: deny select insert update delete sql 
Sql :: SQL Primary Key Error 
Sql :: oracle connection 
Sql :: SQL DATEADD(date_part, number, date) 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =