Check constraint only one column can hold a value

前端 未结 0 1455
时光说笑
时光说笑 2020-12-09 22:56

So i have a table in which i have two [column]id and i want to add a constraint that say that only one of them can hold a value. (one must be null and the other not).

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