Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Raw (0.13 sec)

  1. chainable_api.go

    func (db *DB) Group(name string) (tx *DB) {
    	tx = db.getInstance()
    
    	fields := strings.FieldsFunc(name, utils.IsValidDBNameChar)
    	tx.Statement.AddClause(clause.GroupBy{
    		Columns: []clause.Column{{Name: name, Raw: len(fields) != 1}},
    	})
    	return
    }
    
    // Having specify HAVING conditions for GROUP BY
    //
    //	// Select the sum age of users with name jinzhu
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Apr 17 03:38:55 GMT 2024
    - 14.3K bytes
    - Viewed (1)
Back to top