外键错误,创建第一个表的时候,dept表还不存在呢
http://www.jb51.net/article/38447.htm
第一步 table dept, 第二步table students, 第三步 table course. 没有外键的表格先建立,有外键的表格后建立。