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}'
某个用户是否拥有这张表

  

上一篇:[Beego模型] 五、构造查询


下一篇:码表由来:ascll码-Gbk2312-GBK-Unicode-UTF-8