Multiple constraint checking (FK, UNIQUE) with multiple updates in single WITH clause in Postgres

前端 未结 0 1321
半阙折子戏
半阙折子戏 2021-01-17 08:58

I have this table and constraints:

table_ttt (
  id1, -- UNIQUE CONSTRAINT WHERE id1_ref IS NULL AND id2_ref IS NULL
  id2,
  id1_ref, -- FOREIGN KEY (id1_ref         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题