QueryDSL isNotNull()的SQL等效项

问题描述 投票:0回答:1

我在一些github仓库中看到了这段代码。它使用QueryDSL创建一个表达式。

BooleanExpression expression = QPerson.person.isNotNull();

现在在SQL中这些表达式的等效性(让我们说oracle)?

抱歉,如果它是菜鸟查询。谢谢。

jpa spring-data querydsl
1个回答
0
投票

在SQL中是相同的:

where person is not null
© www.soinside.com 2019 - 2024. All rights reserved.