怎么限定返回同时满足两个条件的结果
SELECT goods_name,goods_price FROM goods WHERE goods_price>(SELECT AVG(goods_price) FROM goods WHERE goods_cate='phone'); 这句会把所有类型产品价格大于平均价格的结果返回,我想要的是既要大于平均价格又要good_cate='phone'
SELECT goods_name,goods_price FROM goods WHERE goods_price>(SELECT AVG(goods_price) FROM goods WHERE goods_cate='phone'); 这句会把所有类型产品价格大于平均价格的结果返回,我想要的是既要大于平均价格又要good_cate='phone'
2016-10-25
举报