Foreign Key for either-or column?

后端 未结 3 1075
夕颜
夕颜 2021-01-19 14:12

Is it possible to have a foreign key that requires either column A or column B to have a value, but not both. And the foreign key for column A matches Table 1 and the forei

3条回答
  •  渐次进展
    2021-01-19 14:23

    it is not necessary that a column have values in it at that time of applying foreign key,but the column name would be same and the data types as well.

提交回复
热议问题