用substr函数即可
select * from aa a,bb b where substr(a.aa1,1,2)||substr(a.aa1,7,2)=b.bb1||b.bb2||b.bb3

解决方案 »

  1.   

    select * from bb where bb.bb1||'0000'||bb.bb2||bb.bb3 like aa1.values
      

  2.   

    select * from bb 
    where bb1||bb2||bb3 in (select substr(aa1,1,2)||substr(a.aa1,7,2) from aa)
      

  3.   

    select * from aa a,bb b where substr(a.aa1,1,2)||substr(a.aa1,7,2)=b.bb1||b.bb2||b.bb3
      

  4.   

    错了,select * from bb,aa1  where aa1.values like bb.bb1||'____'||bb.bb2||bb.bb3
      

  5.   

    select * from bb where exists(select 1 from aa where substr(aa1,1,2)=bb1 and substr(aa1,7,1)=bb2 and substr(aa1,8,1)=bb3)
      

  6.   

    谢谢,已经解决 用的 回复人: letsflytogether(恨!不能拥有天下所有的财富,然后平分) ( ) 信誉:100  
    的方法