You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
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
u := query.Use(db).User
users, err := u.WithContext(ctx).Where(u.Columns(u.ID, u.Name).In(field.Values([][]inferface{}{{1, "modi"}, {2, "zhangqiang"}}))).Find()
// SELECT * FROM
users
WHERE (
id
,
name
) IN ((1,'humodi'),(2,'tom'));
关于这个样例:看到field.Values()返回的是一个value对象,如何转成的?没看懂
有没有一个直接使用的子查询作为in的参数呢
select * from A where A.id in (select B.a_id from B) 这种