Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for NEQ (0.04 sec)

  1. clause/expression.go

    func (eq Eq) NegationBuild(builder Builder) {
    	Neq(eq).Build(builder)
    }
    
    // Neq not equal to for where
    type Neq Eq
    
    func (neq Neq) Build(builder Builder) {
    	builder.WriteQuoted(neq.Column)
    
    	switch neq.Value.(type) {
    	case []string, []int, []int32, []int64, []uint, []uint32, []uint64, []interface{}:
    		builder.WriteString(" NOT IN (")
    		rv := reflect.ValueOf(neq.Value)
    		for i := 0; i < rv.Len(); i++ {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Oct 10 06:45:48 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  2. clause/where_test.go

    			}},
    			"SELECT * FROM `users` WHERE `users`.`id` = ? AND `age` > ? OR `name` <> ?",
    			[]interface{}{"1", 18, "jinzhu"},
    		},
    		{
    			[]clause.Interface{clause.Select{}, clause.From{}, clause.Where{
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Apr 25 12:22:53 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. clause/expression_test.go

    		Expressions: []clause.Expression{
    			clause.Neq{Column: column, Value: "column-value"},
    		},
    		ExpectedVars: []interface{}{"column-value"},
    		Result:       "`column-name` <> ?",
    	}, {
    		Expressions: []clause.Expression{
    			clause.Neq{Column: column, Value: nil},
    			clause.Neq{Column: column, Value: (*string)(nil)},
    			clause.Neq{Column: column, Value: (*int)(nil)},
    			clause.Neq{Column: column, Value: (*bool)(nil)},
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Aug 10 05:34:33 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  4. clause/benchmarks_test.go

    		clauses := []clause.Interface{clause.Select{}, clause.From{}, clause.Where{Exprs: []clause.Expression{clause.Eq{Column: clause.PrimaryColumn, Value: "1"}, clause.Gt{Column: "age", Value: 18}, clause.Or(clause.Neq{Column: "name", Value: "jinzhu"})}}}
    
    		for _, clause := range clauses {
    			stmt.AddClause(clause)
    		}
    
    		stmt.Build("SELECT", "FROM", "WHERE")
    		_ = stmt.SQL.String()
    	}
    }
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Fri Oct 07 12:14:14 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  5. clause/group_by_test.go

    				Columns: []clause.Column{{Name: "role"}},
    				Having:  []clause.Expression{clause.Eq{"role", "admin"}},
    			}, clause.GroupBy{
    				Columns: []clause.Column{{Name: "gender"}},
    				Having:  []clause.Expression{clause.Neq{"gender", "U"}},
    			}},
    			"SELECT * FROM `users` GROUP BY `role`,`gender` HAVING `role` = ? AND `gender` <> ?",
    			[]interface{}{"admin", "U"},
    		},
    	}
    
    	for idx, result := range results {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  6. api/go1.1.txt

    pkg go/token, const LPAREN = 49
    pkg go/token, const LSS = 40
    pkg go/token, const LowestPrec = 0
    pkg go/token, const MAP = 77
    pkg go/token, const MUL = 14
    pkg go/token, const MUL_ASSIGN = 25
    pkg go/token, const NEQ = 44
    pkg go/token, const NOT = 43
    pkg go/token, const NoPos = 0
    pkg go/token, const OR = 18
    pkg go/token, const OR_ASSIGN = 29
    pkg go/token, const PACKAGE = 78
    pkg go/token, const PERIOD = 53
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Mar 31 20:37:15 UTC 2022
    - 2.6M bytes
    - Viewed (0)
Back to top