--主键约束如下:好比student表的id为例altertablestudentaddconstraintPK_Student_Idprimarykey(id);--外键约束如下:好比student表id位主键,score为子表scoreId为外键altertablescoreaddconsraintFK_Score_ScoreIdforeignkey(scoreId)referencesstudent(id);期看对你有帮组.!
0
--主键约束如下:好比student表的id为例altertablestudentaddconstraintPK_Student_Idprimarykey(id);--外键约束如下:好比student表id位主键,score为子表scoreId为外键altertablescoreaddconsraintFK_Score_ScoreIdforeignkey(scoreId)referencesstudent(id);期看对你有帮组.!