软件下载吧文章资讯

分类分类

介绍PostgreSQL 数据库的序列绑定字段与不绑定字段的区别

2024-02-07 12:09作者:下载吧

序列绑定字段与不绑定字段的区别

绑定字段

构造数据

drop sequence if exists test_id_seq;
create sequence test_id_seq;
drop table if exists test;
create table test(id int default nextval(‘test_id_seq’), name text);
alter sequence test_id_seq owned by test.id;

展开全部

相关文章

说两句网友评论
    我要跟贴
    取消