There is table A, which contains data that refers to the “record of one of the other three tables (B, C, D)” How can I establish a relationship between them? The easiest way is to define a "reference_id" column to denote an identifier (record) and a column table that references one of these three tables and connect to the target record with "if conditions", but I think there should be a better way to handle this situation.
There are three solutions to this problem.
, , .- , .- A, (B, C, D). B, b_id c_id d_id null. , .
A
B
C
D
b_id
c_id
d_id
Source: https://habr.com/ru/post/1648340/More articles:C # DiffSharp v0.7.7 Search FSharp.Core v4.4.0.0 - c #play 2.5, hibernate: table not showing - hibernateJava gets image extension from byte array - javaHBase 1.2.1 автономно в Docker не может подключиться - javaSingleton vs. dependency injection - javaМетод Overriding-С# vs java - javaWhat is the place for the NSFetchedResultsController in VIPER architecture? - design-patternsWhy does the async AWS Java SDK use a thread pool? - javaSetting the background color for the programmatically added menu item "Navigation View" when installed in Android - androidRedux Normalized State Tree for Posts and Comments - mongodbAll Articles