sql
Posted allen817
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql相关的知识,希望对你有一定的参考价值。
$sql = ‘select max(price.price) as max_price,min(price.price) as min_price, c.id,c.pid,c.name,c.pic,p.title,p.id as pro_id,p.title
from xy_product_cate as c
left join xy_product as p on c.id = p.cid
left join xy_price as price on price.pid = p.id
where c.pid in (‘.$idsStr.‘) and c.status=0
group by c.id‘;(这里要用总的)
以上是关于sql的主要内容,如果未能解决你的问题,请参考以下文章