【问题标题】:which index gets automatically created when we create primary key and unique key in Oracle当我们在 Oracle 中创建主键和唯一键时,会自动创建哪个索引
【发布时间】:2017-08-11 13:08:47
【问题描述】:

我想知道当我们在 Oracle 表上创建主键和唯一键时会自动创建哪个索引。 假设表上没有索引。

【问题讨论】:

    标签: database oracle indexing oracle11g oracle10g


    【解决方案1】:

    Oracle 将在这两种情况下创建唯一索引。主键不能包含空值。唯一的密钥可以。

    如果您想尝试看看会发生什么,有关索引的信息可在 user_indexes 视图中找到。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2010-10-24
      • 1970-01-01
      • 2013-08-30
      • 2016-03-01
      • 2011-01-10
      • 2017-04-28
      相关资源
      最近更新 更多