SQL domain ERROR: column does not exist, setting default

前端 未结 3 2023
余生分开走
余生分开走 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:09

    Try this: value should be in single quote like '00000'

    ALTER DOMAIN public."POSTAL_CODE" set default '00000';
    

提交回复
热议问题