SQL>
DESCRIBE user_constraints
Name Null? Type
------------------------------- -------- ----
OWNER NOT NULL VARCHAR2
(30
)
CONSTRAINT_NAME NOT NULL VARCHAR2
(30
)
CONSTRAINT_TYPE VARCHAR2
(1
)
TABLE_NAME NOT NULL VARCHAR2
(30
)
SEARCH_CONDITION LONG
R_OWNER VARCHAR2
(30
)
R_CONSTRAINT_NAME VARCHAR2
(30
)
DELETE_RULE VARCHAR2
(9
)
STATUS VARCHAR2
(8
)
SELECT constraint_name, constraint_type, search_condition
FROM user_constraints
WHERE table_name =
'KNIHA';
CONSTRAINT_NAME C
------------------------------ -
SEARCH_CONDITION
--------------------------------------------------------------------------------
SYS_C003721 C
AUTOR IS NOT NULL
SYS_C003722 P
SYS_C003723 U