
CockroachDB
チャンネル登録者数 1.16万人
2394 回視聴 ・ 33いいね ・ 2024/01/18
How do you add, drop, and rename constraints in SQL? In this video, we'll take a look at how to use ADD CONSTRAINT, DROP CONSTRAINT, and RENAME CONSTRAINT. We'll also take a look at how to replace SQL constraints in your schema by using SQL transactions to execute the drop and add statements together.
(See below for the links mentioned in the video to get additional help working with your database schema, and to learn how to make schema changes without downtime.)
00:00 What are SQL constraints?
00:21 What is the basic syntax for adding a SQL constraint? (Primary key)
00:45 How to add a foreign key
01:19 How to add a check constraint
01:39 How to drop a constraint
02:12 How to rename constraints
02:24 The impact of schema changes on downtime
02:54 How CockroachDB lets you perform schema changes with no downtime
Additional resources:
💻 Blog: How to use ADD CONSTRAINT in SQL (with examples): cockroa.ch/3u592DR
⏯️ Video: What is a Foreign Key Constraint? Understanding Primary & Foreign Keys • What is a Foreign Key Constraint? Und...
⏯️ Video: How to change your Foreign Keys: • Terror free online schema changes | H...
⏯️ Video: How to perform zero downtime online schema changes
• How to perform zero downtime online s...
🪳 Learn more about CockroachDB: cockroa.ch/48Caywx
Follow Cockroach Labs
✔️ Website: cockroachlabs.com/
✔️ Twitter (X): twitter.com/CockroachDB
✔️ Linkedin: www.linkedin.com/company/cockroach-labs
✔️ Facebook: www.facebook.com/cockroachlabs
✔️ Instagram: instagram.com/cockroachdb
✔️ Threads: www.threads.net/@cockroachdb
#sql #sqlforbeginners #database #distributedsql #cockroachdb
コメント
関連動画

Learn Basic SQL in 15 Minutes | Business Intelligence For Beginners | SQL Tutorial For Beginners 1/3
2,564,585 回視聴 - 4 年前

Types of Databases: Relational vs. Columnar vs. Document vs. Graph vs. Vector vs. Key-value & more
86,490 回視聴 - 1 年前

Database Keys Made Easy - Primary, Foreign, Candidate, Surrogate, & Many More
206,597 回視聴 - 3 年前
使用したサーバー: hortensia
再生方法の変更
動画のデフォルトの再生方法を設定できます。埋め込みで見れるなら埋め込みで見た方が良いですよ。
現在の再生方法: 通常
コメントを取得中...