表中的两个字段和另外一张表的一个字段是关联的。需要我们用sql去解决。
表的格式如下:
select allocation.*,storeid.storename,storeid.address,originstoreid.storename
from allocation
left join store as storeid on allocation.storeid = storeid.id
left join store as originstoreid on allocation.originstoreid = originstoreid.id