delphi 中怎样实现对两个表根据某种条件关联后产生的结果的查询?谢谢。

解决方案 »

  1.   

    select a.id,b.name from table1 a join table2 b on a.id = b.id
      

  2.   

    select a.id,b.name from table1 a,table2 b where a.id = b.id
      

  3.   

    我是说怎么能用VCL来解决,谢谢!
      

  4.   

    select select_list from table1 [inner] join table2
    on table1.column1=table1.column2
      

  5.   

    添加一个Adoconnection,Adoquery控件,配置好,
    执行多表连接SQL语句
      

  6.   

    DELPHI的主从表就是一例啊,直接用两个QUERY和GRID
      

  7.   

    可以看看Delphi自己带的主从表的demo,主要是配置MasterField等属性