Using SQL query to determine if a table exists

前端 未结 6 1860
清歌不尽
清歌不尽 2020-12-31 06:06

Guys is there any other way to determine a table exists other than below

  1. select count(*) from where rownum =1
  2. select
    6条回答
    •  粉色の甜心
      2020-12-31 06:32

      Below query can be triggered to Oracle for checking whether any Table present in DB or not:

      SELECT count(*) count FROM dba_tables where table_name = 'TABLE_NAME'
      

      Above query will return count 1 if table 'TABLE_NAME' is present in Database

    提交回复
    热议问题