llmclaughlin
Programmer
I have a local variable declared called L_Checkbook VARCHAR2, then I have cursor. Example
I've tried million different ways, the way below compiles but error's when executed. Question is, is there a way to get the checkbook value into the variable L_Checkbook from a cursor like below.
EXECUTE IMMEDIATE 'Select checkbook '||
' INTO '||L_CHECKBOOK ||
' FROM checkwriters@'||L_AUTOCASHES.database_name ||
' cw, stations@'||L_AUTOCASHES.database_name || ' st ' ||
' WHERE st.station = ''1''' ||
' AND cw.checkwriter = st.checkwriter';
Thanks
Louie
I've tried million different ways, the way below compiles but error's when executed. Question is, is there a way to get the checkbook value into the variable L_Checkbook from a cursor like below.
EXECUTE IMMEDIATE 'Select checkbook '||
' INTO '||L_CHECKBOOK ||
' FROM checkwriters@'||L_AUTOCASHES.database_name ||
' cw, stations@'||L_AUTOCASHES.database_name || ' st ' ||
' WHERE st.station = ''1''' ||
' AND cw.checkwriter = st.checkwriter';
Thanks
Louie