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 设置为可变