一次性取得多张表的数据?几张表的字段不一样
就是发送一个SQL语句取得多表的数据放在一个DataSet里
select * from table1;
select * from table2;
select * from table3;

解决方案 »

  1.   

    用复合语句,比如select * from table1,table2,table3
      

  2.   

    不懂这样可不可以~~没试过就是了~
    select * from table1 union select * from table2
      

  3.   

    SELECT T1.F1,T1.F2,T1.F3,T2.F1,T2.F2,T3.F1,T3.F2 FROM TABLE1 T1 INNER JOIN TABLE2 T2 ON ... INNER JOIN TABLE3 T3 ON ...
      

  4.   

    select fieldname1.... from table1 left join table2 left join 3...
    两张表肯定没问题 多张表不确定
    没有测试  但是用left join就可以得到你要的效果