Stop Writing SELECT-Then-INSERT. Postgres Upserts in One Statement
Share

INSERT ON CONFLICT does insert-or-update atomically. Here is DO NOTHING, DO UPDATE with EXCLUDED, telling insert from update, and the two…

 

 INSERT ON CONFLICT does insert-or-update atomically. Here is DO NOTHING, DO UPDATE with EXCLUDED, telling insert from update, and the two…Continue reading on Medium » Read More Sql on Medium 

#sql

By ali

Leave a Reply