批量处理空表

       首先使用下面的sql语句查询一下当前用户下的所有空表:

select table_name from user_tables where NUM_ROWS=0;

然后用一下SQL语句执行查询:

select 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=0

接着把查询出来的sql语句在sql命令窗口执行:

oracle导出空表

相关文章:

  • 2021-11-30
  • 2021-11-21
  • 2021-12-30
  • 2021-08-01
  • 2021-11-24
  • 2022-02-27
猜你喜欢
  • 2021-11-29
  • 2021-12-10
  • 2021-08-10
  • 2021-12-19
  • 2021-11-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案