你试试自身关联查询的方法,
假设你的表名是t_test_1
select t1.* 
from t_test_1 t1,t_test_1 t2,
where t1.name=t2.name --人名相同
and (t1.dh1 not in (t2.dh1,t2.dh2,t2.dh3)  --这个有可能不能这样写,有可能要改下,我也不记得了。
and  t1.dh2 not in(t2.dh1,t2.dh2,t2.dh3)
and t1.dh3 not in (t2.dh1,t2.dh2,t2.dh3) )第二条语句你可以类似于这么写