Searches a character expression for a string of characters, and returns the position of the string's first character for the first occurrence of the string.
| Category: | Character |
| Returned data type: | DOUBLE |
specifies any valid expression that evaluates to a character string.
| Data type | NCHAR |
| See | <sql-expression> |
| FedSQL Expressions |
specifies any valid expression that evaluates to a character string to search for in target-expression.
| Data type | NCHAR |
| Tip | Enclose a literal string of characters in single quotation marks. |
| See | <sql-expression> |
| FedSQL Expressions |
|
Statements
|
Results
|
|---|---|
select index('aabb','ab'); |
2 |