Syntax
Parameters
| Parameter | Description | Supported input types |
|---|---|---|
<string> | The string that will be searched. | TEXT |
<substring> | The substring to search for. | TEXT |
Return Type
INTEGER
Example
1
7
0Reference material for STRPOSR function
STRPOS(<string>, <substring>)
| Parameter | Description | Supported input types |
|---|---|---|
<string> | The string that will be searched. | TEXT |
<substring> | The substring to search for. | TEXT |
INTEGER
SELECT
STRPOS('hello world','hello') AS res;
1
SELECT
STRPOS('hello world','world') AS res;
7
SELECT
STRPOS('hello world','work') AS res;
0Was this page helpful?