云数据库 GAUSSDB-ALTER SEQUENCE:语法格式

时间:2024-01-23 20:08:50

语法格式

修改序列归属列

1
2
3
ALTER SEQUENCE [ IF EXISTS ] name 
    [MAXVALUE maxvalue | NO MAXVALUE | NOMAXVALUE]
    [ OWNED BY { table_name.column_name | NONE } ] ;

修改序列的拥有者

1
ALTER SEQUENCE [ IF EXISTS ] name OWNER TO new_owner;
support.huaweicloud.com/devg-v1-gaussdb/gaussdb_devg_0503.html