根据商品表( sh_goods)与商品评论表( sh_goods_comment):
- 查询商品id等于8且有效的评论内容.
- 查询每个用户评论的商品数量.
- 查询最新发布的5条有效商品评论信息.
- 查询评论过两种以上不同商品的用户id及对应的商品id
- 查询没有任何评论信息的商品d和name
- 查询商品评分为5星的商品评论信息.
Select id,content From sh_goods_comment Where goods_id=8 and is_show=1;
Select user_id,count(goods_id) From sh_goods_comment