PostgreSQL 重置序列序号
PostgreSQL 大约 130 字从 1 开始
false
表示,数字1
还没有被用掉。
select setval('post_id_seq', 1, false);
从 2 开始
true
表示,数字1
已经被用掉了。
select setval('post_id_seq', 1, true);
阅读 819 · 发布于 2021-05-18
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
Android ListView 条目点击变色阅读 1551
-
Linux 常用命令之内存相关命令阅读 1306
-
Windows 子系统 WslRegisterDistribution failed with error: 0x80370102阅读 71
-
filebeat read: connection reset by peer阅读 2249
-
建站必备网址阅读 2073
-
Nginx 配置之解决 413 错误(Request Entity Too Large)阅读 4313
-
OpenResty 内置的时间函数阅读 4167
-
Java 消除 if else 代码的几种方式阅读 1369
-
算法:希尔排序阅读 499
-
Kubernetes Namespaces 相关命令阅读 172