oracle for循环

begin
  for x in (select object_name from user_objects where object_name like 'CDD_%')   loop
   
     execute immediate 'delete from '||x.object_name;
  end loop;
end;

posted @ 2012-11-28 11:47  真大闸蟹  阅读(873)  评论(0编辑  收藏  举报