Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我发现Squerylexists的文档中有一个函数,但我找不到如何使用它的示例。
exists
有人能给我一个“存在”的例子吗?
您可以在此处找到示例(官方 squeryl 示例)。
val studentsWithAnAddress = from(students)(s => where(exists(from(addresses)((a) => where(s.addressId === a.id) select(a.id)))) select(s) )