删除数据库中带有“?”的表

1、先查询出这些带“?”的表

select 'drop table "'||tname||'";' from tab where tname like '?%';

2、将查询结果复制到命令窗口中执行

   drop table "????";
   drop table "????????_";
   drop table "????????_TIER1";
   drop table "????????_TIER2";

3、刷新Tables列表

猜你喜欢

转载自wyj-study.iteye.com/blog/2202622