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");
Coding Changes the World
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");