📜  phoenix ecto 查询表达式 - Elixir 代码示例

📅  最后修改于: 2022-03-11 14:48:01.904000             🧑  作者: Mango

代码示例1
def with_minimum(age, height_ft) do
  from u in "users",
    where: u.age > ^age and u.height > ^(height_ft * 3.28),
    select: u.name
end

with_minimum(18, 5.0)