哈库拉玛塔塔——tjitty

记录下网络上的精品测试技术文章 and 生活

统计

留言簿(8)

积分与排名

阅读排行榜

评论排行榜

Oracle 删除用户所有表[转]

以用户test为例

for example:

declare
cursor cur1 is select table_name from dba_tables where owner='TEST';
begin
  for cur2 in cur1 loop
    execute immediate 'drop table test.'||cur2.table_name;
  end loop;
end;
/

posted on 2010-04-28 12:48 tjitty 阅读(223) 评论(2)  编辑 收藏 引用

评论

# Now I know who the birany one is, I’ll keep looking for your posts. 2011-05-23 00:47 Indy

Now I know who the birany one is, I’ll keep looking for your posts.  回复  更多评论   

只有注册用户登录后才能发表评论。