thinkphp 如果写出这样的sql

浏览:645 发布日期:2015/10/30 分类:求助交流 关键字: query
select * ,goods_id as g_id, (select min(sale_price) from wsj_goods_spec where sale_state=1 and sale_price>0 and goods_id=g_id) as sale_price , (select min(price) from wsj_goods_spec where sale_state=0 and goods_id=g_id) as price from wsj_goods where 1

目前我只能用query
最佳答案
评论( 相关
后面还有条评论,点击查看>>