create table test(field1 serial);相当于
create sequence test_field1_seq;
create table test(field1 int not null default nextval('test_field1_seq'));create table test(field1 serial);相当于
create sequence test_field1_seq;
create table test(field1 int not null default nextval('test_field1_seq'));