--------------------------表結構--------------------------學習
student(StuId,StuName,StuAge,StuSex) 學生表測試
teacher(TId,Tname) 教師表spa
course(CId,Cname,C_TId) 課程表code
sc(SId,S_CId,Score) 成績表blog
----------------------------------------------------------class
問題十五:刪除學習「葉平」老師課的「SC」表記錄di
-- 複製sc建立測試表score DELETE FROM score WHERE S_CId IN (SELECT CId FROM course LEFT JOIN teacher ON course.C_TId=teacher.TId WHERE teacher.Tname='葉平');
答案僅供參考,不必定徹底正確,若發現錯誤或有更好的,歡迎評論,互相交流,一塊兒成長!!!co