需要向uuid类型没有NOT NULL规范(非主键)的字段插入空值。
当我尝试插入 '' 时,返回:
ERROR: invalid input syntax for uuid: ""
Run Code Online (Sandbox Code Playgroud)
当我尝试插入 null 时,返回:
ERROR: null value in column "uuid" violates not-null constraint
Run Code Online (Sandbox Code Playgroud)
怎么做?
psql 9.3.5
SQL:
INSERT INTO inv_location (address_id)
VALUES (null)
Run Code Online (Sandbox Code Playgroud)