0
点赞
收藏
分享

微信扫一扫

ORACLE查看约束


SELECT
    constraint_name,
    constraint_type,
    search_condition
FROM
    user_constraints
WHERE
    table_name = 'FR_WH_M'

ORACLE查看约束_ORACLE查看约束

constraint_name 是用户自定义的约束名,_NN代表NOT NULL

constraint_type  中C对应CHECK,P->primary key, R->FOREIGN KEY , U-->UNIQUE

ORACLE查看约束_ORACLE查看约束_02

 

举报

相关推荐

0 条评论