oracle how to check if a table exists
Answer: There are a few ways to verify whether a table exists within Oracle. One way is to describe it to check if the table exists: SQL> desc mytable. Another is to select the first row to check that the table exists (hey it may have millions of rows!): SQL> select * from mytable where rownum=1; At bare minimum, you will get a response of 0 rows selected which means the table exists, but there is no data in the table. You can also check the data dictionary to see if a table exists: SQL> select table_name from user_tables where table_name='MYTABLE';