我有3张表,我想根据一张表中的某个字段来切换表。
Table 1 (ID_table1, Type, Child_Id)
Table 2 (Id, table2_Value_1(String))
Table 3 (Id, Table3_Value_1(String))
在这里,我想从intable 2或table 3基于Typein 中选择值,table1并使用 the作为与andChild_Id相关的外键。table 2table 3
if(Table1.type=="a") then Table 2 else table 3
我想在休眠状态下执行此操作。