序列做为字段类型使用
最近更新时间: 2025-02-18 16:02:00
postgres=# drop table t;
DROP TABLE
postgres=# create table t (id serial not null,nickname text);
CREATE TABLE
postgres=# INSERT INTO t (nickname) VALUES('hello TDSQL PG');
INSERT 0 1
postgres=# select * from t;
id | nickname
----+-------------
1 | hello TDSQL PG
(1 row)