select * from table where exsits(sql语句) : 括号中sql语句有数据则返回这些相关id的数据集
select * from table where not exsits(sql语句) : 括号中sql语句无数据则返回这些相关id的数据集