Skip to content

Commit b251807

Browse files
committed
docs: add lnnvl function documentation
Add the Oracle-compatible lnnvl function to the built-in functions table and its description section in both the English and Chinese docs. Closes #301 Signed-off-by: jokerzsd <2701819133@qq.com>
1 parent 6068dc3 commit b251807

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

CN/modules/ROOT/pages/7.8.adoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
|compose
7676
|decompose
7777
|sys_context
78+
|lnnvl
7879
|====
7980

8081
== 内置函数说明
@@ -1150,4 +1151,12 @@ ivorysql=# select sys_context('USERENV','DB_NAME');
11501151
ivorysql
11511152
(1 row)
11521153
1154+
```
1155+
=== `lnnvl` 函数
1156+
功能:当条件为 FALSE 或 UNKNOWN(NULL)时返回 TRUE,条件为 TRUE 时返回 FALSE。通常用于 WHERE 子句中,以包含条件为假或为 NULL 的行。测试用例如下:
1157+
1158+
查询值不等于 10 或值为 NULL 的行:
1159+
1160+
```
1161+
select * from t where lnnvl(a = 10);
11531162
```

EN/modules/ROOT/pages/7.8.adoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
|compose
7676
|decompose
7777
|sys_context
78+
|lnnvl
7879
|====
7980

8081
== Built-in function descriptions
@@ -1149,3 +1150,11 @@ ivorysql=# select sys_context('USERENV','DB_NAME');
11491150
(1 row)
11501151
11511152
```
1153+
=== `lnnvl` function
1154+
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:
1155+
1156+
Query the rows where the value is not equal to 10 or is NULL:
1157+
1158+
```
1159+
select * from t where lnnvl(a = 10);
1160+
```

0 commit comments

Comments
 (0)