select * from where Employee_ID as 'var1' Join on Employee_Catagory as 'var2' Join On Employee_Pos. as var3 .
要将Employee Unique_Tax_ID作为$res
,我想在Sigle SQL语句中使用它。 var1 -var3值并不重要,因为我可以使用函数在该文件中使用PHP进行更改。
答案 0 :(得分:0)
简单LEFT JOIN
应该:
select t1.employee_id,
t1.employee_category,
t1.employee_pos,
t2.unique_tax_id
from table1 t1
left join table2 t2 on t1.system_id = t2.system_id