add example for package gdb

This commit is contained in:
John Guo
2021-05-02 17:57:00 +08:00
parent 4b15ab5e99
commit df1ef5db78

View File

@ -0,0 +1,9 @@
package main
import (
"github.com/gogf/gf/frame/g"
)
func main() {
g.DB().Model("user").Distinct().CountColumn("uid,name")
}