where  a.hxbm = b.hxbm  这里都把列写错了。是where  a.bm = b.bm  吧

解决方案 »

  1.   

    你的pzbm字段是字符型的吗?如果是数字的话将2两边的单引号去掉就行了
      

  2.   

    where  a.hxbm = b.hxbm  这里都把列写错了。是where  a.bm = b.bm  吧
    ****************
    这个是笔误!!!
    你们说的都还不对,谢谢
      

  3.   

    select a.bm,a.mc,b.pzbm
    from zxf.sfjl a ,zxf.hxda b
    where  trim(a.hxbm) = trim(b.hxbm) and  b.pzbm ='2'
      

  4.   

    select a.bm,a.mc,b.pzbm
    from a ,b
    where  a.bm(+)= b.bm and b.pzbm ='2'
      

  5.   

    我也以为很难的!其实... ...
    select a.bm,a.mc,b.pzbm from a,b where a.bm=b.bm and b.pzbm='2';
      

  6.   

    select a.bm,a.mc,(select b.pzbm from hxda b where  a.hxbm = b.hxbm and  b.pzbm ='2')  from zxf.sfjl a 
      

  7.   

    简单.
    select a.bm,a.mc,b.pzbm
    from zxf.sfjl a ,zxf.hxda b
    where  a.bm = b.bm and  b.pzbm ='2'