select a.a1, a.a2, a.a3 from A a join B b on a.a1=b.b1*cos(b.b2)+b.b3 
不知道我理解错没有

解决方案 »

  1.   

    select L from t a
    where exists(select 1 from t where a.L1=b1*cos(b2)+b3)
      

  2.   

    A和B是表table里面的两行。它们都在table里面select L1,L2,L3, L1*cos(L2)+L3 As result
    from table
    where L='B'然后我需要用那个结果result
    select L 
    from table
    where L1=result
      

  3.   

    select L 
    from table
    where L1 in(
    select L1*cos(L2)+L3 As result
    from table
    where L='B')
      

  4.   

    select L from t a
    where exists(select 1 from t where a.L1=b1*cos(b2)+b3 and L1='B')
      

  5.   

    select L from t a
    where exists(select 1 from t where a.L1=L1*cos(L2)+L3);
    小试一下。