我有一個表id1,id2,type。type是包含另一個表名稱的枚舉值。我想join使用的表名來執行type。例如:switch($type)case 'table1': join table1; break;case 'table2': join table2; break;我該如何實現? 查看完整描述