IN和EXISTS inexists in 用于比较in关键字前面的列和后面的列是否一样,如果一样则返回true不一样则返回false例句:select * from student where student.sid in (select sc.sid from sc); exists 用于比较exists关键字后面的语句是否成立,如果成立则返回true,不成立则返回false例句select * from student where exists (select sc.sid from sc where student.sid = sc.sid);