Skip to content

Commit

Permalink
add docs entry
Browse files Browse the repository at this point in the history
  • Loading branch information
guojidan committed Feb 20, 2024
1 parent 64bd741 commit 07e8f5c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/source/user-guide/sql/scalar_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,7 @@ trunc(numeric_expression[, decimal_places])

- [coalesce](#coalesce)
- [nullif](#nullif)
- [nvl/ifnull](#nvl/ifnull)

### `coalesce`

Expand Down Expand Up @@ -603,6 +604,21 @@ nullif(expression1, expression2)
- **expression2**: Expression to compare to expression1.
Can be a constant, column, or function, and any combination of arithmetic operators.

### `nvl/ifnull`

Returns _expression2_ if _expression1_ is NULL; otherwise it returns _expression1_.

```
nullif(expression1, expression2)
```

#### Arguments

- **expression1**: return if expression1 not is NULL.
Can be a constant, column, or function, and any combination of arithmetic operators.
- **expression2**: return if expression1 is NULL.
Can be a constant, column, or function, and any combination of arithmetic operators.

## String Functions

- [ascii](#ascii)
Expand Down

0 comments on commit 07e8f5c

Please sign in to comment.