目录
通过id查询name列
var name string
.Where("id = ?", id).Column("name").Select(&name)
通过class查询age、name
type AgeAndName struct {
?? ?Age ? int
?? ?Name string
}
var records []AgeAndName
.Where("class =? ", class).Column("age").Column("name").Select(&records)