视图
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不了解的
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不了解的
这两个字段匹配吗,查查数据是不是里面含有空格之类的
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)
from t_fxcwf_info a,t_trans_detail b
where a.hphm=b.card_no1
一定是这个语句没有返回结果集!where条件不满足