更新时间:2024-10-26 GMT+08:00

ROUNDROBIN表

GaussDB(DWS)支持建立roundrobin表,根据实际需要设置表1中的参数table.type进行配置。设置table.type=ROUND-ROBIN。

输入示例

1
2
3
4
5
CREATE TABLE charge_snapshot (
	id bigint NOT NULL,
	profit_model integer,
	ladder_rebate_rule text
);

输出示例

1
2
3
4
5
CREATE TABLE "public"."charge_snapshot" (
  "id" BIGINT NOT NULL,
  "profit_model" INTEGER,
  "ladder_rebate_rule" TEXT
) WITH (ORIENTATION = ROW, COMPRESSION = NO) NOCOMPRESS DISTRIBUTE BY ROUNDROBIN;