Details
-
New Feature
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
Function Definition
int strpos(string text, substring text)
Description
This function finds the location of specified substring.
- If string or substring is null, the result should be null.
- If substring is '', the result should be 1.
- If there is no matched substring, the result should be 0.
- The result is one-based index.
Example.
hyunsik=> select strpos('tajo','jo'); strpos -------- 3 (1 row)