跟这个差不多吧
SQL> select * from b;身份号     毕业院校   培训形式    文化程度 姓名
---------- ---------- ---------- --------- ----------
001        南京大学   脱产               4 李三
001        人民大学   脱产               3 李三
002        北京大学   脱产               3 吴仁SQL> select 身份号 from b where 文化程度 like (select 文化程度 from b where 身份号='002');身份号
----------
001
002

解决方案 »

  1.   

    是2张表关联,且extco_type为一字符串,如:1,2,3,4,5
    而且字串长度不定
      

  2.   

    这样试试
    ... like(select '%'||extcotype_id||'%' from extcotype where extcotype_name ='代甲方');
      

  3.   

    select a.outworker_id,a.outworker_name from outworker a,extco b where a.extco_id=b.extco_id and b.extco_type like (select extcotype_id from extcotype where extcotype_name like '%代甲方%');
    oracle中是不能用中文作字段名的。