Quantcast
Channel: Doyensys Allappsdba Blog..
Viewing all articles
Browse latest Browse all 1640

Query to find all constraints in a table

$
0
0
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
/

Viewing all articles
Browse latest Browse all 1640

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>