在 SQL 中,表中的单个列可以引用多个表吗?
例如,如果我们有表employee(PK emp_id, name) 和customer(PK cust_id, name)
我们可以有一个表contact(id 引用[employee, customer], number);
或者我们是否一定需要制作 2 个表:
contact_cust(cust_id参考customer, number) 和contact_emp(emp_id参考employee, number)
我知道第二个选择会更好,即使第一个是可能的。我只想知道第一种方法可行吗?