| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 599 人关注过本帖
标题:如何将DATAWINDOW 设置为可变
只看楼主 加入收藏
miaohw
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2006-6-2
收藏
 问题点数:0 回复次数:1 
如何将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
ヤ順祺冄繎ヤ
Rank: 8Rank: 8
等 级:贵宾
威 望:42
帖 子:3032
专家分:0
注 册:2005-11-9
收藏
得分:0 
是什么哟...
乱七糟八的...
这种的话你可以动态建DW
2006-06-05 12:48
快速回复:如何将DATAWINDOW 设置为可变
数据加载中...
 
   



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

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