Skip to content

Commit

Permalink
Add and fix examples for array_slice function
Browse files Browse the repository at this point in the history
  • Loading branch information
szarnyasg committed Apr 3, 2024
1 parent 111835b commit 5cf7a83
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/sql/functions/char.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,10 @@ This section describes functions and operators for examining and manipulating st
<div class="nostroke_table"></div>

| **Description** | Extract a string using slice conventions. Negative values are accepted. |
| **Example** | `array_slice('DuckDB', 5, NULL)` |
| **Result** | `DB` |
| **Example** | `array_slice('DuckDB', 3, 4)` |
| **Result** | `ck` |
| **Example** | `array_slice('DuckDB', 3, NULL)` |
| **Result** | `NULL` |

### `ascii(string)`

Expand Down

0 comments on commit 5cf7a83

Please sign in to comment.