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.
follow to 和有什么不HQLs一样
HQLs
1. "from Object where field is null" 2. "from Object where field = null"
上述陈述中哪一项是正确的?怎么打电话null?HQL
null
HQL
在 ANSI SQL 中,"Null = Null" 给你 Null,不是真的,所以如果你试图选择某个东西等于 null,其中答案需要是“是的,它是 null”,那么你需要使用“一片空白”。