How to avoid (or solve) unique constraint violation when inserting to db?

后端 未结 0 1019
梦谈多话
梦谈多话 2020-11-21 07:21

I have a table with a partial unique constraint where a costumer_id can only have one is_primary flag set to True.

The behavior that I would like to achieve is: when

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