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.
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.