标题:如何将DATAWINDOW 设置为可变
取消只看楼主
miaohw
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2006-6-2
 问题点数:0 回复次数:0 
如何将DATAWINDOW 设置为可变

string new_syn=' SELECT "A"."ACC_NBR", '+&
' "B"."NAME", '+&
' "A"."VIP_FLAG" '+&
' FROM SA."SERV" "A", '+&
' SA."CUST" "B", '+&
' SA."STAFF" "C", '+&
' SA."SITE" "D", '+&
' SA."EXCHANGE" "E" '+&
' WHERE ( "A"."CUST_ID" = "B"."CUST_ID" ) and '+&
' ( "A"."CUST_SEQ_NBR" = "B"."CUST_SEQ_NBR" ) and '+&
' ( "C"."SITE_ID" = "D"."SITE_ID" ) and '+&
' ( "D"."AREA_ID" = "E"."AREA_ID" ) and '+&
' ( "D"."AREA_ID"=:S_AREA_ID) AND '+&
' ( "A"."EXCHANGE_ID" = "E"."EXCHANGE_ID" ) and '+&
' ( "A"."ACC_NBR" = :v_acc_nbr ) AND '+&
' ( "C"."STAFF_ID" = :S_STAFF_ID )'
string old_syn=' SELECT "A"."ACC_NBR", '+&
' "B"."NAME", '+&
' "A"."VIP_FLAG" '+&
' FROM SA."SERV" "A", '+&
' SA."CUST" "B", '+&
' SA."STAFF" "C", '+&
' SA."SITE" "D", '+&
' SA."EXCHANGE" "E" '+&
' WHERE ( "A"."CUST_ID" = "B"."CUST_ID" ) and '+&
' ( "A"."CUST_SEQ_NBR" = "B"."CUST_SEQ_NBR" ) and '+&
' ( "C"."SITE_ID" = "D"."SITE_ID" ) and '+&
' ( "D"."AREA_ID" = "E"."AREA_ID" ) and '+&
' ( "D"."AREA_ID"=:S_AREA_ID) AND '+&
' ( "A"."EXCHANGE_ID" = "E"."EXCHANGE_ID" ) and '+&
' ( "C"."STAFF_ID" = :S_STAFF_ID )'

请问我执行下更代码时为什么不执行??????????


SELECT SA.B.AREA_ID into :s_area_id from sa.staff a,SA.site b
where SA.a.staff_id= :s_staff_id and SA.a.SITE_id=SA.b.SITE_id;
dw_1.setSQLselect(new_sy);
DW_1.retrieve(S_AREA_ID,v_acc_nbr,s_staff_id);

请教了,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,



搜索更多相关主题的帖子: 可变 DATAWINDOW 
2006-06-03 15:56



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-69534-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.245000 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved