go-gorm / gorm

The fantastic ORM library for Golang, aims to be developer friendly
https://gorm.io
MIT License
37.02k stars 3.94k forks source link

How to write group by for multiple fields #7245

Open wlbwlbwlb opened 1 month ago

wlbwlbwlb commented 1 month ago

Your Question

The document you expected this should be explained

like this? db.Group("age,score")

Expected answer

alex-guoba commented 1 month ago

Group belongs to Chaining Method.

db.Group("age").Group("score")