Im looking for an Oracle SQL statement that will show me all the table names, structures and constraint information that I have created.
Would it be something along the lines of
Select * from user_tables;
Im looking for an Oracle SQL statement that will show me all the table names, structures and constraint information that I have created.
Would it be something along the lines of
Select * from user_tables;
This is the official oracle query you should use to select the tables for the current user:
SELECT table_name FROM user_tables;
or
SELECT table_name
FROM dba_tables
or
SELECT table_name
FROM all_tables
for selecting all constraints for a table:
SELECT * FROM USER_CONSTRAINTS WHERE TABLE_NAME = ""
or
SELECT * FROM USER_CONSTRAINTS WHERE TABLE_NAME='EMP';
(This will list you all the constraints from that particular user in which you are logged in.)