Database & utility
Scalar
position()
Returns location of first occurrence of needle in haystack, counting from 1. Returns 0 if no match found
Alias of instr()
Arguments & returns
position(haystack, needle)
Scalar
| Overload link | haystack | needle |
Returns |
|---|---|---|---|
| #01 | VARCHAR | VARCHAR |
BIGINT |
Example
Haybarn WASM 1.5.5-rc3 · In your browser
Engine example · Run to view results.
Catalog examples
SELECT
instr('test test', 'es');