select distinct test_id from tab_test where (test_name,test_desc) in select 'zsg1','tttt1' from dual union select 'zsg2','tttt2' from dual);

解决方案 »

  1.   

    http://expert.csdn.net/Expert/topic/2468/2468591.xml?temp=.3771631
      

  2.   

    呵呵。如果没理解错的话光用in是得不出楼主要的效果的。select test_id from tab_test where (test_name='zsg1' and test_desc='tttt1') or (test_name='zsg2' and test_desc='tttt2') group by test_id having count(*)>1;
      

  3.   

    应该只用下面的语句就可以了:
    select test_id from tab_test where (test_name='zsg1' and test_desc='tttt1') or (test_name='zsg2' and test_desc='tttt2')