squirrel icon indicating copy to clipboard operation
squirrel copied to clipboard

in , not in operator build where condition

Open ErinJJ opened this issue 1 year ago • 1 comments

hi, is it support 'in' when build where condition? sql like : select name from table1 where age in (10,12)

ErinJJ avatar Sep 27 '22 10:09 ErinJJ

Yes:

.Where(squirrel.Eq{"age": []int{10, 12}})

lann avatar Sep 27 '22 11:09 lann