create or replace procedure p_deletetable(i_tableName in varchar2) as dynamic_drop_sql varchar2(500); begin dynamic_drop_sql := 'DELETE FROM ' || i_tableName ; execute immediate dynamic_drop_sql; commit; end p_deletetable;
Oracle中存储过程传入表名,动态清除该表的数据
最新推荐文章于 2023-12-27 11:22:38 发布