SQL domain ERROR: column does not exist, setting default

前端 未结 3 2020
余生分开走
余生分开走 2021-01-27 03:43

I created a DOMAIN:

CREATE DOMAIN public.\"POSTAL_CODE\"
  AS character(5)
  NOT NULL;

I tried to set the default value:

ALTER          


        
3条回答
  •  庸人自扰
    2021-01-27 04:19

    Try this

    Alter table  ALTER  TYPE character varying, ALTER  SET DEFAULT '00000'
    
        

    提交回复
    热议问题