postgresql设置主键

replace(((uuid_generate_v4())::character varying)::text, '-'::text, ''::text)

原文地址:https://www.cnblogs.com/yyy1234/p/10524978.html