ALTER TABLE public.xxx ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY
如若转载,请注明出处:https://paper.404sec.com/postgresql-IDENTITY.html