Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle sql merge

-- Oracle: Example for Insert or update in t1 from t2 values 
MERGE INTO table1 t1
USING table2 t2
ON (t1.CODE = t2.ID)
WHEN MATCHED THEN
    UPDATE SET t1.COL1 = t2.VALUE1
WHEN NOT MATCHED THEN
    INSERT (CODE, COL1)  VALUES (t2.ID, t2.VALUE1);
Comment

PREVIOUS NEXT
Code Example
Sql :: update using case in mysql 
Sql :: count characters of string mysql 
Sql :: date_part mysql 
Sql :: When mysql server would not work in xampp 
Sql :: postgres check for foreign key 
Sql :: sql common columns 
Sql :: mysql subdate 
Sql :: oracle desc table primary key 
Sql :: drop df constraint sql server 
Sql :: concat using laravel 
Sql :: mysql on update current_timestamp 
Sql :: mysql on duplicate key update 
Sql :: How to convert DateTime to VarChar SQL 
Sql :: row number mssql 
Sql :: compare date mysql 
Sql :: select last row in sql 
Sql :: create database sql 
Sql :: extract weekday from date in sql 
Sql :: mysql email validation 
Sql :: python pandas df to postgres json table 
Sql :: how to query without duplicate rows in sql 
Sql :: connexion mysql 
Sql :: how to check grants on a package in oracle 
Sql :: sql server case sensitive search 
Sql :: sqlite save db 
Sql :: sql date format dd-mm-yyyy 
Sql :: brew start postgres 
Sql :: mysql group by date 
Sql :: spring boot working with sql database connection 
Sql :: truncate all tables 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =