查询两个列表内容

select A.*, B.`name` storName from product A left join store B on A.storeid = B.id where A.isdel=0 and A.state=0

同一个表如果需要一次查询两遍可以另起别名为表C一起查询

原文地址:https://www.cnblogs.com/FloraIgnace/p/6029167.html