mirror of
https://gitee.com/johng/gf
synced 2026-07-03 03:39:35 +08:00
16 lines
261 B
Go
16 lines
261 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
)
|
|
|
|
func main() {
|
|
one, err := g.Model("carlist c").
|
|
LeftJoin("cardetail d", "c.postid=d.carid").
|
|
Where("c.postid", "142039140032006").
|
|
Fields("c.*,d.*").One()
|
|
fmt.Println(err)
|
|
g.Dump(one)
|
|
}
|