Home

Published

- 1 min read

check if table exists oracle

img of check if table exists oracle

The solution for this is noted below

check if table exists oracle

Solution

   SELECT * FROM USER_TABLES WHERE TABLE_NAME = 'my_table';
-- Tables from schemes you can access
SELECT * FROM ALL_TABLES WHERE OWNER = 'scheme_name' TABLE_NAME = 'my_table';
-- Tables from schemes you can access
SELECT * FROM DBA_TABLES WHERE OWNER = 'scheme_name' TABLE_NAME = 'my_table';

Try other methods by searching on the site. That is if this doesn’t work