Questions tagged «database-sequence»


5
Postgres手动更改顺序
我正在尝试将序列设置为特定值。 SELECT setval('payments_id_seq'), 21, true 这给出了一个错误: ERROR: function setval(unknown) does not exist 使用ALTER SEQUENCE似乎也不起作用? ALTER SEQUENCE payments_id_seq LASTVALUE 22 如何才能做到这一点? 参考:https : //www.postgresql.org/docs/current/static/functions-sequence.html
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.