Answers for "upsert postgres"

SQL
1

upsert postgres

INSERT INTO table_name(column_list)
VALUES(value_list)
ON CONFLICT target [DO NOTHING]

-- or 
    
INSERT INTO table_name(column_list)
VALUES(value_list)
ON CONFLICT target DO UPDATE SET column_1 = value_1, .. WHERE condition]
Posted by: Guest on January-28-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language