输入banner图图片脚本导航/分类

PostgreSQL 自增主键

table test_no( id SERIAL primary key, name varchar(20) );

二、创建序列

CREATE SEQUENCE test_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1;

应用:

  测试:

    

select nextval(test_seq);

 

PostgreSQL 自增主键

标签:sql   postgre   nbsp   自增   create   style   lock   span   arch