【发布时间】:2013-07-16 05:51:58
【问题描述】:
谁能告诉我如何使用 slick 的提升嵌入将表列与 NULL 进行比较。
我想在mysql中实现什么:
select * from Users where email = '<some_email_addr>' and ( removed = NULL OR removed <= 1 )
当我尝试时,它在 x.removed === null 处给我一个错误:
val q = for {
x <- Users
if x.email === email && ( x.removed === null || x.removed <= 1 )
} yield x.removed
谢谢
【问题讨论】: