select * from t1 a, t2 b where a.f1=b.f1最后我用dataset.fieldbyname(a.f1),asstring,报错说没有a.f1字段,这种情况怎么办???

解决方案 »

  1.   

    你试试这样.
    select a.*,b.* from t1 a, t2 b where a.f1=b.f1;将其中你需要的字段取出来,如 select a.f1,a.f2,a.f3...,b.f1,b.f2,b.f3,...
                                from   t1 a,t2 b 
                                where  a.f1 = b.f1
      

  2.   

    有没有在dataset添加FIELDS所有字段?
    dataset.fieldbyname('f1'),asstring;
      

  3.   

    dataset.fields[0].asstring也可以吧
      

  4.   

    select * from t1 a, t2 b where a.f1=b.f1     最好不要这样写select a.f1,a.f2,b.f3 from t1 as a join t2 as b on a.f1=b.f1