Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Query on Structure of Database
>Are there any SQL commands (or other ways) to get information on the
>structure of a database?
Take a look to these tables:
USER_TABLES (or ALL_TABLES) USER_INDEXES (or ALL_INDEXES) USER_CONSTRAINTS (or ALL_CONSTRAINTS)
>I would like to get information on things like "which tables are within
>a certain tablespace", "what constraints do exist for a field within a
>table", ...
select table_name from user_tables where tablespace_name='xxxxx'
bye
Jorge Received on Wed Jul 21 1999 - 03:49:29 CDT
![]() |
![]() |