如果您尝试像这样设置序列号:
SELECT setval('table_ID_seq', (SELECT max("ID") + 1 FROM table));
您可能会遇到以下错误:
ERROR: relation "table_ID_seq" does not exist
LINE 1: SELECT setval('table_ID_seq', (SELECT max("ID") + 1 FROM t...
^
********** Error **********
ERROR: relation "table_id_seq" does not exist
SQL Status:42P01