Use This One SQL Command to Insert OR Update a Table

Published: 16 July 2024
on channel: Database Star
1,613
90

📝 Get my free SQL Cheat Sheets: https://www.databasestar.com/get-sql-...
🎓 Master SQL Fundamentals: https://databasestar.mykajabi.com/sql...

If you need to import data, you'll likely want to either update existing rows or insert new rows depending on if the row exists or not.

There's a command in SQL that lets you do exactly this.

In this video, I'll explain what the issue is, explain the command that can be used, and show you examples in several SQL vendors.


⏱ TIMESTAMPS:
00:00 - The problem
01:02 - The command we can use
01:49 - How to do it (Postgres)
05:25 - Another example
07:00 - Oracle
07:47 - SQL Server

🔗 VIDEO LINKS:
SQL scripts used in this video: https://github.com/bbrumm/databasesta...


Watch video Use This One SQL Command to Insert OR Update a Table online without registration, duration hours minute second in high quality. This video was added by user Database Star 16 July 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,613 once and liked it 90 people.