1.当前用户下是否有某个表
select count(*) from user_tables where table_name = 'TABLE_NAME';
注意,一般情况下,引号里面的table_name要全部用大写。
如果结果为1,表示有这个表,为0表示没有这个表。

2.某个用户下是否有某个表?
select count(*) from dba_tables where owner = 'USER_NAME' and table_name = 'TABLE_NAME';

相关文章:

  • 2021-07-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2021-10-04
  • 2021-09-11
猜你喜欢
  • 2021-11-05
  • 2021-08-28
  • 2021-05-30
  • 2021-04-19
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案