postgreSQLでidの自動採番方法

SQLコマンド
ALTER TABLE “public"."sys_user"
DROP CONSTRAINT “sys_user_pkey" ,
DROP COLUMN “id",
ADD COLUMN “id" serial8 NOT NULL,
ADD CONSTRAINT “sys_user_pkey" PRIMARY KEY (“id");

DataBase

Posted by arkgame