Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

check if table exists oracle

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';
 
PREVIOUS NEXT
Tagged: #check #table #exists #oracle
ADD COMMENT
Topic
Name
2+7 =