- gorm不支持
map [string]interface{},編寫>= like
gorm查詢的時候where條件使用map[string]interface{}格式,如何編寫大于等于或者like的條件?
- gorm Raw 統(tǒng)計
db.Raw("select count(1) as total from user").Count(&count)
map [string]interface{},編寫>= like
gorm查詢的時候where條件使用map[string]interface{}格式,如何編寫大于等于或者like的條件?
db.Raw("select count(1) as total from user").Count(&count)