sql语句要这样写:select * from tb_course tc where not exists (select 1 from tb_stucourse tsc where tsc.CourseNum = tc.CourseNum )