📜  psql 获取序列 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:13.704000             🧑  作者: 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;