A abigtoy Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-15 #1 [red]如何实现在DBGrid中0-2字段显示表A的查询数据, 3-4字段显示表B的查询数据,表A和B通过唯一字段相关 联。[/red]
萧 萧月禾 Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-15 #4 DBGRID关联的数据集中包含的是你的A,B表的关联查询结果就可以了呀 select A.F1,A.F2.A.F3,B.f1,B.f2 from A,B where A.F0 = B.f0
J jqw Unregistered / Unconfirmed GUEST, unregistred user! 2001-12-15 #5 tquery query.sql.text:='select a.f1,a.f2,a.f3,b.f4,b.f5 from table1 a,table2 b '+ ' where a....=b....');//here ...是表A和B的唯一字段
tquery query.sql.text:='select a.f1,a.f2,a.f3,b.f4,b.f5 from table1 a,table2 b '+ ' where a....=b....');//here ...是表A和B的唯一字段