有人可以告訴我,我們如何比較一個表列與NULL使用浮動的提升嵌入。光滑的比較表列與空
我想在mysql中實現什麼:
select * from Users where email = '<some_email_addr>' and (removed = NULL OR removed <= 1)
它給我的錯誤在x.removed ===空當我嘗試:
val q = for {
x <- Users
if x.email === email && (x.removed === null || x.removed <= 1)
} yield x.removed
感謝
偉大的工作:) – Sameerel
'isNull'和'isNotNull'已被棄用,並由'isEmpty'和'isDefined'取代。來源:[光滑文檔](http://slick.typesafe.com/doc/2.1.0-RC2/upgrade.html) –