Hi,
I have a table id1
, id2
, type
. type
is an enumerated value containing a name of another table.
I'd like to preform a join
with the name of the table of type
.
For example:
switch($type)
case 'table1':
join table1;
break;
case 'table2':
join table2;
break;
How can I achieve this?