oracle:查询数据表是否存在

oracle:查询数据表是否存在

select count(*) as NUM from all_tables where table_name = '{$table}'

  

或者:

select count(*) as NUM from all_tables where owner = '{$user}' and table_name = '{$table}'
某个用户是否拥有这张表

  

原文地址:https://www.cnblogs.com/achengmu/p/6604924.html