commit
a4a1766028
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ users, err := models.Users(db,
|
||||||
InnerJoin("credit_cards c on c.user_id = users.id"),
|
InnerJoin("credit_cards c on c.user_id = users.id"),
|
||||||
Where("age > ?", 30),
|
Where("age > ?", 30),
|
||||||
AndIn("c.kind in ?", "visa", "mastercard"),
|
AndIn("c.kind in ?", "visa", "mastercard"),
|
||||||
Or("email like ?", "%aol.com%"),
|
Or("email like ?", `%aol.com%`),
|
||||||
GroupBy("id", "name"),
|
GroupBy("id", "name"),
|
||||||
Having("count(c.id) > ?", 2),
|
Having("count(c.id) > ?", 2),
|
||||||
Limit(5),
|
Limit(5),
|
||||||
|
|
Loading…
Reference in a new issue