4D v14

POSITION

Home

 
4D v14
POSITION

POSITION  


 

 

Command POSITION

POSITION (arithmetic_expression IN arithmetic_expression)

The POSITION function returns a value indicating the starting position of the first arithmetic_expression within the second arithmetic_expression. If the string is not found, the function returns zero.

Example  

This example will return the starting position of the word "York" in any last names of the PEOPLE table:

SELECT FirstName, POSITION('York’ IN LastName)
FROM PEOPLE;

 
PROPERTIES 

Product: 4D
Theme: Functions

 
SEE ALSO 

LOCATE
SUBSTRING

 
ARTICLE USAGE

4D SQL Reference ( 4D v11 SQL Release 4 )
4D SQL Reference ( 4D v14)
4D SQL Reference ( 4D v12.1)
4D SQL Reference ( 4D v13.4)
4D SQL Reference ( 4D v14 R2)
4D SQL Reference ( 4D v14 R3)
4D SQL Reference ( 4D v14 R4)