数据仓库服务 GAUSSDB(DWS)-INDEX_ALL

时间:2024-12-10 11:28:49

INDEX_ALL

在ADB中,创建全列索引index_all='Y'。 GaussDB (DWS)不支持该属性修改表定义信息,DSC迁移时会将该属性删除。

输入示例

1
2
3
4
5
6
7
DROP TABLE IF EXISTS unsupport_parse_test;
CREATE TABLE `unsupport_parse_test` (
    `username` int,
    `update` timestamp not null default current_timestamp on update current_timestamp ,
     clustered key clustered_key(shopid ASC, datetype ASC)
)index_ALL = 'Y';
DROP TABLE IF EXISTS unsupport_parse_test;

输出示例

1
2
3
4
5
6
DROP TABLE IF EXISTS "public"."unsupport_parse_test";
CREATE TABLE "public"."unsupport_parse_test" (
  "username" INTEGER,
  "update" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP
) WITH (ORIENTATION = ROW, COMPRESSION = NO) NOCOMPRESS DISTRIBUTE BY HASH ("username");
DROP TABLE IF EXISTS "public"."unsupport_parse_test";
support.huaweicloud.com/tg-dws/dws_16_0138.html