Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CN/modules/ROOT/pages/7.8.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
|compose
|decompose
|sys_context
|lnnvl
|====

== 内置函数说明
Expand Down Expand Up @@ -1150,4 +1151,12 @@ ivorysql=# select sys_context('USERENV','DB_NAME');
ivorysql
(1 row)

```
=== `lnnvl` 函数
功能:当条件为 FALSE 或 UNKNOWN(NULL)时返回 TRUE,条件为 TRUE 时返回 FALSE。通常用于 WHERE 子句中,以包含条件为假或为 NULL 的行。测试用例如下:

查询值不等于 10 或值为 NULL 的行:

```
select * from t where lnnvl(a = 10);
```
9 changes: 9 additions & 0 deletions EN/modules/ROOT/pages/7.8.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
|compose
|decompose
|sys_context
|lnnvl
|====

== Built-in function descriptions
Expand Down Expand Up @@ -1149,3 +1150,11 @@ ivorysql=# select sys_context('USERENV','DB_NAME');
(1 row)

```
=== `lnnvl` function
function: return TRUE if the condition is FALSE or UNKNOWN (NULL), and FALSE if the condition is TRUE. It is commonly used in a WHERE clause to also include rows whose condition evaluates to NULL. The test cases are as follows:

Query the rows where the value is not equal to 10 or is NULL:

```
select * from t where lnnvl(a = 10);
```
Loading