We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to recreate this query with squirrel:
SELECT c.userID, c.name, o.orderID FROM users as c join order as o ON c.userID = o.userID where orderID IN ('a', 'b');
The closest I can come up with is this and it's wrong:
query := sq.Select("c.id, c.name, o.orderID"). From("users").join("order as o using (userID)") Where(sq.Eq{ "id": []string{'a', 'b'}, })
The text was updated successfully, but these errors were encountered:
One option is there to have multiple Where(sq.Eq{} but if i have 100 orderIDs it will grow alot and i think it will be ugly
Where(sq.Eq{}
Sorry, something went wrong.
you can use squirrel.And
squirrel.And
No branches or pull requests
I'm trying to recreate this query with squirrel:
The closest I can come up with is this and it's wrong:
The text was updated successfully, but these errors were encountered: