ORDER BY 子句中的列必须包含在查找字段或 GROUP BY 子句中。
查询购物车下商品列表
select time,shop_id from TABLE where uid=UID group by shop_id order by time
ORDER BY 子句中的列必须包含在查找字段或 GROUP BY 子句中。
查询购物车下商品列表
select time,shop_id from TABLE where uid=UID group by shop_id order by time