問答題若mydb數(shù)據(jù)庫中已有班級表class(id,name)和學(xué)生表student(id,name,cid),其中student表中的cid表示班級編號?,F(xiàn)請建立外鍵約束,在student表的cid含有數(shù)據(jù)時(shí)拒絕class表執(zhí)行刪除操作,而class表更新時(shí)自動(dòng)更新student表相關(guān)數(shù)據(jù)。

您可能感興趣的試卷