var result=db.table join db.table1 on table.id equals table1.id大概这样就能查出来,你就多表联合查.写的不怎么对,你跟据我的思路改改试试看.还有一种就是 把外键当成主表的一个属性查出来