Function | Return Type | Description |
currval(regclass) | bigint | Return value most recently obtained with nextval for specifIEd sequence |
lastval() | bigint | Return value most recently obtained with nextval for any sequence |
nextval(regclass) | bigint | Advance sequence and return new value |
setval(regclass,bigint) | bigint | Set sequence's current value |
setval(regclass,bigint,boolean) | bigint | Set sequence's current value and is_called flag |
以上是内存溢出为你收集整理的PostgreSQL使用存储过程为插入的数据自动生成ID全部内容,希望文章能够帮你解决PostgreSQL使用存储过程为插入的数据自动生成ID所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)