Army intensifying Stinger air missile training as part of new strategic initiatives; Army takes the lead in virtual health technology with opening of new Texas facility; Army task force fights Boko Haram, terrorism in Cameroon with youth outreach; Army builds sustaining military partnership with Saudi Arabia
This SQL tutorial explains how to use the SQL EXISTS condition with syntax and examples. Click the Try It button next to an example to test it for yourself in our SQL Editor. The SQL EXISTS condition is used in combination with a subquery and is considered to be met, if the subquery returns at least one row.
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';