How does GROUP BY DESC select its order?

前端 未结 2 612
忘掉有多难
忘掉有多难 2021-01-22 19:36

So I am creating sections for a store. The store can have multiple scopes, if there isn\'t a section_identifier set for a given store_id it should fall

2条回答
  •  萌比男神i
    2021-01-22 20:04

    GROUP BY sorts records in ascending order by default. Your store_id is not being referenced at all instead the records returned are sorted in ascending order of the section_identifier

提交回复
热议问题