日期:2014-05-16  浏览次数:20784 次

小白问关联查询和删除某些字符后再进行匹配的问题

在线求问。。。
------解决方案--------------------
引用:

在线求问。。。

select t1.id,t1.x,t1.y,t1.z,decode(substr(t1.x,instr(t1.x,':')+1,length(t1.x)-instr(t1.x,':'))),t2.x,t2.y,null) FY from data t1,field t2 where t1.id=t2.id;

------解决方案--------------------


SELECT d1.id,d1.x,d1.y,d1.z,d2.fy
from data d1,(select 'A:'
------解决方案--------------------
F1.x x,f1.y fy from field f1) d2
where d1.x=d2.x;