CodePudding user response:
Ask god to help me this small white thanks!CodePudding user response:
V_sql varchar2 (2000);V_sql:='select depcode, sum () from t where RTP date between: and 1:2'.
The open result_set for v_sql using v_beginDate v_endDate;
CodePudding user response:
The table name cannot be directly assembled, dynamic statement can be used to realize,CodePudding user response:
The table name cannot be directly assembled, can use dynamic statement,SJ_SQL varchar2 (2000);
SJ_SQL:='your SQL statements;
The EXECUTE IMMEDIATE SJ_SQL;
COMMIT;