加好友 发纸条
写留言 加关注
begin
for c in(select table_name from user_tables where table_name like '%DelTableName%')
loop
EXECUTE IMMEDIATE 'truncate table kdgisdb.'||c.table_name;
end loop;
end;
这样就能将符合条件的所有表清空
喜欢
0
赠金笔