Postgresql学习记录

pg sequence 相关操作

查询序列的相关信息

1
select * from pg sequence where segrelid = 'seq_name'::regclass;

修改序列的类型为 bigint

1
alter sequence "seq_name" as bigint MAXVALUE 9223372036854775807;

查询 表的序列名

1
select pg_get_serial_sequence('table_name','column_name');
作者

Bruce Liu

发布于

2024-01-16

更新于

2024-01-16

许可协议

You need to set install_url to use ShareThis. Please set it in _config.yml.
You forgot to set the business or currency_code for Paypal. Please set it in _config.yml.

评论

You forgot to set the shortname for Disqus. Please set it in _config.yml.