minor fixes

This commit is contained in:
Blargian 2024-04-13 11:32:40 +02:00
parent f18cdaa004
commit 13f84a5957

View File

@ -1322,7 +1322,7 @@ Result:
## countSubstrings
Returns how often a substring `needle` occurs in string `haystack`.
Returns how often a substring `needle` occurs in a string `haystack`.
Functions [`countSubstringsCaseInsensitive`](#countsubstringscaseinsensitive) and [`countSubstringsCaseInsensitiveUTF8`](#countsubstringscaseinsensitiveutf8) provide case-insensitive and case-insensitive + UTF-8 variants of this function respectively.
@ -1373,7 +1373,7 @@ Result:
```
## countSubstringsCaseInsensitive
Returns how often a substring `needle` occurs in string `haystack`. Ignores case.
Returns how often a substring `needle` occurs in a string `haystack`. Ignores case.
**Syntax**
@ -1395,6 +1395,8 @@ Type: [UInt64](../../sql-reference/data-types/int-uint.md).
**Examples**
Query:
``` sql
SELECT countSubstringsCaseInsensitive('AAAA', 'aa');
```
@ -1409,6 +1411,8 @@ Result:
Example with `start_pos` argument:
Query:
```sql
SELECT countSubstringsCaseInsensitive('abc___ABC___abc', 'abc', 4);
```
@ -1423,7 +1427,7 @@ Result:
## countSubstringsCaseInsensitiveUTF8
Returns how often a substring `needle` occurs in string `haystack`. Ignores case and assumes that `haystack` is a UTF8 string.
Returns how often a substring `needle` occurs in a string `haystack`. Ignores case and assumes that `haystack` is a UTF8 string.
**Syntax**
@ -1445,6 +1449,8 @@ Type: [UInt64](../../sql-reference/data-types/int-uint.md).
**Examples**
Query:
``` sql
SELECT countSubstringsCaseInsensitiveUTF8('ложка, кошка, картошка', 'КА');
```
@ -1459,6 +1465,8 @@ Result:
Example with `start_pos` argument:
Query:
```sql
SELECT countSubstringsCaseInsensitiveUTF8('ложка, кошка, картошка', 'КА', 13);
```