Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
与主键一样,可以使用 CREATE TABLE 或 ALTER TABLE 语句创建外键。一旦创建了外键,该键中的列就只能包含通过该外键关联的表中的主键值。