oracle dynamic execution

Inside a stored procedure using DDL statements, to be performed dynamically.

EXECUTE IMMEDIATE 'ALTER TABLE CS_THZ_TAB TRUNCATE PARTITION P_20190501';

Note: The end of the statement must not add a semicolon.

Guess you like

Origin www.cnblogs.com/jiangqingfeng/p/10978173.html