视图
create or replace view v_dxxx as
select a.hphm,b.card_no2,a.wfsj,a.wfdd
    from t_fxcwf_info a,t_trans_detail b
    where a.hphm=b.card_no1
两个表里面都有数据,就是在视图里找不到,请高人指点啊,对oracle不了解的

解决方案 »

  1.   

     a.hphm=b.card_no1符合条件的没有
      

  2.   

    a.hphm=b.card_no1 
    这两个字段匹配吗,查查数据是不是里面含有空格之类的
      

  3.   

    select a.hphm,b.card_no2,a.wfsj,a.wfdd 
        from t_fxcwf_info a,t_trans_detail b 
        where a.hphm=b.card_no1 还是要看a.hphm=b.card_no1的条件,改成 where trim(a.hphm)=trim(b.card_no1)
      

  4.   

    select a.hphm,b.card_no2,a.wfsj,a.wfdd 
        from t_fxcwf_info a,t_trans_detail b 
        where a.hphm=b.card_no1 
    一定是这个语句没有返回结果集!where条件不满足