抱歉,标题模糊,但我不知道该如何精确地解决我的问题...
我的问题基于以下条件:
-------------------------------- | component_id | component_name | -------------------------------- | 1 | C1 | | 2 | C2 | -------------------------------- ------------------------------------------------------- | specification_id | component_id | specification_name | ------------------------------------------------------- | 1 | 1 | S1 | | 2 | 1 | S2 | | 3 | 2 | S3 | | 4 | 2 | S4 | ------------------------------------------------------- ---------------------------------------------------------------------------------------------------- | scenario_id | specification_id_for_component_with_id_1 | specification_id_for_component_with_id_2 | ---------------------------------------------------------------------------------------------------- | 1 | 2 | 3 | ----------------------------------------------------------------------------------------------------
但是我想确保这些规范确实存在并且属于所引用的组件。此外,对于每个新组件,都必须更改“方案”表。必须有更好的方法...