私は3つのテーブルを持っています:
Product(columns: Id, ProductType, ProductId, ...)
Apple(columns: Id, ProductType(will be always 1), ...)
Orange(columns: Id, ProductType(will be always 2), ...)
ProductaがProductType1の場合、それをAppleTableに関連付け、2の場合、 ToTableに関連付けますOrange。SQLで可能ですか?