select jno from (SELECT pno,JNO from tab1 t1 where pno in (select pno from tab1 where sno = 'S1') )T2 group by jno having count(JNO) = (select count(1) from tab1 where sno = 'S1')
我想请教一下“group by jno having count(JNO) = (select count(1) from tab1 where sno = 'S1')”是不是应该用: group by jno having count(JNO) >= (select count(1) from tab1 where sno = 'S1') 因为按照楼主所说是“至少包含”的意思。