Oracle 11g:是否可以创建集群唯一索引?

时间:2018-06-27 12:43:13

标签: sql oracle indexing

要在MS SqlServer中创建群集唯一索引,我们可以使用:

ALTER TABLE           FOOBAR
ADD   CONSTRAINT      FOOBAR_UK
UNIQUE  CLUSTERED     ( SOME_COLUMN_1, SOME_COLUMN_2, SOME_COLUMN_3 )

Oracle中是否有类似的东西? (我认为不是,但是我需要确定)

1 个答案:

答案 0 :(得分:1)

您要查找的功能称为index organized tableSee also the syntax rules。您的示例可能会翻译为:

CREATE TABLE foobar (
  some_column_1 ..,
  some_column_2 ..,
  some_column_3 ..,
  some_column_4 ..,

  CONSTRAINT foobar_uk PRIMARY KEY (some_column_1, some_column_2, some_column_3)
)
ORGANIZATION INDEX