ALTER TABLE "mailbox"."mail_mark" ADD COLUMN "first_dept_id" varchar(40); COMMENT ON COLUMN "mailbox"."mail_mark"."first_dept_id" IS '市州单位ID'; update mail_mark mm set mm.first_dept_id = m.first_dept_id from mail m where mm.mail_id = m.id;