另外一张一条都没有出来.数据库有值/键
但在数据库里面直接查是对的 两张表是用 union 连接吧, 或者换成其它的?
你用 select * from 表1 left join 表2 on 表1.id=表2.id