Oracle中存储过程传入表名,动态清除该表的数据
Oracle中存储过程传入表名,动态清除该表的数据create or replace procedure p_deletetable(i_tableName in varchar2)asdynamic_drop_sql varchar2(500);begindynamic_drop_sql := 'DELETE FROM ' || i_tableName ;execute immediate dynamic_drop_sql;commit;end p_deletetable;