更新时间:2023-02-15 10:34:45
以下方法应该起作用:
posts = Post |> where([p], p.id in [1, 2]) |> Repo.all
如何使用Ecto构建WHERE IN数组子句?
PHP / MySQL的使用WHERE子句中的数组
如何在where子句中正确使用大小写
如何使用“where in” Linq中的sql子句
Doctrine 2 - 如何在where子句中使用discriminator列
如何在针对 unixtimestamp (bigint) 列的 where 子句中使用 curdate()
如何在linq的where子句中使用Contains
如何在“where value in..."子句中使用参数?
如何在 where 子句中使用我的别名?
如何使用case语句来构建动态where子句