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