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'); |
Postgresql学习记录
You need to set
install_url
to use ShareThis. Please set it in _config.yml
.