怎么在oracle数据库中查询一个表的主键是哪一列

2025-04-13 16:49:19
推荐回答(1个)
回答1:

 select   *   
 from   user_cons_columns     
 where   constraint_name   =   
 (select   constraint_name   
 from   user_constraints                 
 where   table_name   =   'BST_FAVORITE'  and   constraint_type   ='P');