Content Type
Video
Duration
6m
Level
Introductory
Explore how foreign key constraints help maintain data integrity in relational databases, and see how to set them up in InterSystems IRIS® data platform.
Content Type
Video
Duration
6m
Level
Introductory
Explore how foreign key constraints help maintain data integrity in relational databases, and see how to set them up in InterSystems IRIS® data platform.
| Reference | Timestamp | Code |
|---|---|---|
| Creates an Order table that cascades updates of reference column values to the foreign key column. If a reference column value is deleted, the corresponding foreign key values are set to NULL. | 3:01 | Begin code:CREATE TABLE Order (
OrderID INT,
OrderItem VARCHAR,
OrderQuantity INT,
CustomerNum INT,
CONSTRAINT OrderPK PRIMARY KEY (OrderID),
CONSTRAINT CustomersFK FOREIGN KEY (CustomerNum) REFERENCES Customers (CustID)
End code, |
Having an issue with the learning site? Want to provide feedback on a course? Contact us by emailing online.training@intersystems.com.
Please include all relevant information, including the page or course you are having trouble with, and any necessary screenshots.