LightDB支持compress nologging语法

功能简介

兼容Oracle创建表/索引指定compress/nocompress和logging/nologging关键字,compress/nocompress和logging/nologging谁在前都支持,没有区分。

从LightDB 23.2版本开始,LightDB在创建表/索引时支持compress/nocompress和logging/nologging关键字,compress/nocompress和logging/nologging关键字相对位置必须在tablespace关键字前面。
仅是语法糖功能,兼容Oracle语法,没有实现对应的功能。

用法

create table 语句

create table comp_log1(id int) compress;
create table comp_log2(id int) nocompress;
create table comp_log3(id int) logging;
create table comp_log4(id int) nologging;
create table comp_log5(id int) compress logging;
create table comp_log6(id int) compress nologging;
create table comp_log7(id int) nocompress logging;
create table comp_log8(id int) nocompress nologging;
create table comp_log9(id int) logging compress;
create table comp_log10(id int) logging nocompress;
create table comp_log11(id int) nologging compress;
create table comp_log12(id int) nologging nocompress;

create table as语句

-- CREATE TABLE AS
CREATE TABLE films_recent compress logging tablespace pg_default AS SELECT 10 age, 'xiaohong' name, 123456 id;
drop table films_recent;
CREATE TABLE if not exists films_recent compress logging tablespace pg_default AS SELECT 10 age, 'xiaohong' name, 123456 id;
drop table films_recent;

create index语句

-- create index
create table comp_log_test(id int);
create index idx_id on comp_log_test(id) nologging compress tablespace pg_default;
create index if not exists idx_id2 on comp_log_test(id) nocompress logging tablespace pg_default;
drop table comp_log_test;
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值