select table_name,constraint_name,constraint_type,status
from user_constraints
where constraint_type='P' and table_name='大写表名';
Oracle查看主键名、状态
最新推荐文章于 2023-09-08 11:04:30 发布

select table_name,constraint_name,constraint_type,status
from user_constraints
where constraint_type='P' and table_name='大写表名';