📜  postgresql 列表序列 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:21.460000             🧑  作者: Mango

代码示例1
# Get all sequences
SELECT c.relname FROM pg_class c WHERE c.relkind = 'S';

# Get last value of a sequence
SELECT last_value FROM test_id_seq;