col type format a10
col cons_name format a30
selectdecode(constraint_type,
'C', 'Check',
'O', 'R/O View',
'P', 'Primary',
'R', 'Foreign',
'U', 'Unique',
'V', 'Check view') type
,constraint_name cons_name
,status
,last_change
fromdba_constraints
whereowner like '&owner'
andtable_name like '&table_name'
order by 1
/
col cons_name format a30
selectdecode(constraint_type,
'C', 'Check',
'O', 'R/O View',
'P', 'Primary',
'R', 'Foreign',
'U', 'Unique',
'V', 'Check view') type
,constraint_name cons_name
,status
,last_change
fromdba_constraints
whereowner like '&owner'
andtable_name like '&table_name'
order by 1
/