「postgresql入門」シーケンス(sequence)の値を更新する方法

SQL構文:
newsdb=# select setval(‘news_publish_num_seq‘,1001);
setval
——–
1001
(1 行)
^
newsdb=# select last_value from news_publish_num_seq;
last_value
————
1001
(1 行)

Comments are closed.