光滑连接功能输入

时间:2015-01-21 15:33:18

标签: function scala join input slick

如何使用该功能的输入并加入光滑的

例如

def query (coffeID : int) = DBAction { implicit rs =>
val implicitInnerJoin = for {
      c <- coffees
      s <- suppliers if ((c.supID === s.id ) && (c.cofID === coffeeID))
  } yield (c.name, s.name)

- 使用====

编辑拼写错误

1 个答案:

答案 0 :(得分:0)

您需要使用===

def query (coffeID : int) = DBAction { implicit rs =>
    val query = for {
        c <- coffees
        s <- suppliers if (c.supID === s.id) && (c.cofID === coffeeID)
    } yield (c.name, s.name)
    query.list
}