adoQuery 做join table, 於append時,被join的table 如何顯示 |
尚未結案
|
rich66
一般會員 ![]() ![]() 發表:7 回覆:14 積分:4 註冊:2004-02-02 發送簡訊給我 |
請問一對多表格, 而detal的表格是一個join的table如下
select
a.order1_no,
a.order2_no,
a.item_no,
b.item_name_ch,
b.item_name_eg,
b.item_type_ch,
b.item_type_eg,
b.item_stuff_ch,
b.item_stuff_eg,
a.order2_ch,
a.order2_eg,
a.order_color_ch,
a.order_color_eg,
b.item_factory_ch,
b.item_factory_eg,
a.bonded,
a.price_usd,
a.price_net,
a.usequit,
a.useunit,
b.item_ch,
b.item_color_ch
from
order2 a,
itemno b
where
a.item_no = b.item_no and
a.order1_no = :order1_no adoQuery在新增時,要怎麼讓table b的資料與table a同時顯示出來, 就像lookup一樣, 可是, 我不要用lookup, 因為資料量大, 效率會很差~有人知道怎麼做的嗎??
|
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |