开启一个自增序列
create sequence my_sequece_haha start 1
(从1开启)
select nextval(‘my_sequece_haha’)
: 2
(自增显示)
select setval(‘my_sequece_haha’, 1)
(重置为1)
开启一个自增序列
create sequence my_sequece_haha start 1
(从1开启)
select nextval(‘my_sequece_haha’)
: 2
(自增显示)
select setval(‘my_sequece_haha’, 1)
(重置为1)