要在MS SqlServer中创建群集唯一索引,我们可以使用:
ALTER TABLE FOOBAR
ADD CONSTRAINT FOOBAR_UK
UNIQUE CLUSTERED ( SOME_COLUMN_1, SOME_COLUMN_2, SOME_COLUMN_3 )
Oracle中是否有类似的东西? (我认为不是,但是我需要确定)
答案 0 :(得分:1)
您要查找的功能称为index organized table。 See 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