The POSITION function Returns the actual position of the character which occurs first. POSITION function is ANSI standard.
Teradata has an equivalent function called INDEX.
Both the POSITION and INDEX functions returns position of character's first occurrence in a string.
Examples for the POSITION function
SELECT POSITION( 'u' IN 'formula'); Displays Result as '5'
Examples for the INDEX function
SELECT INDEX('formula', 'u'); Displays Result as '5'
No comments:
Post a Comment