多表关联查询

select t.spcode,t.newspcode,c.pname,d.pname from tb_mobile_sp t ,tb_datadict_collection  c ,tb_datadict_collection d
where c.spbusitype='Mobile' and c.property='SPType' and t.sptype=c.pvalue
and d.spbusitype='Mobile' and d.property='Status' and t.status=d.pvalue 

你可能感兴趣的:(java,C++,c,C#,mobile)