PL/SQL (MOSC)

MOSC Banner

multiple table seen

edited Sep 15, 2015 10:03AM in PL/SQL (MOSC) 6 commentsAnswered

select utc.table_name, utc.column_name, utc.data_type, utc.data_length,utc.nullable,utc.data_default,

uc.constraint_type, uc.constraint_name

from dba_TAB_COLS utc,  dba_constraints uc where utc.table_name=uc.table_name and uc.constraint_type in ('P','U') 

order by table_name;

is the above SQL is correct? I seen some table name repetation. as I need basic information about table and its column and constraints and datatype.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center