|
|
FULL A - Z Oracle Function Library (formerly named "Morgan's Library")
Term: INSTR
Definition: INSTR( source_string, substring [, start_position [, occurrance ] ] ) source_string is the string to be searched. substring is the character string to be searched for inside of source_string. start_position is an optional argument. It is an integer value that tells Oracle where to start searching in the source_string. If the start_position is negative, then Oracle counts back that number of characters from the end of the source_string and then searches backwards from that position. If omitted, this defaults to 1. occurrence is an integer indicating which occurrence of substring Oracle should search for. That is, should INSTR return the first matching substring, the second matching substring, etc. This argument is optional. If omitted, it defaults to 1. If the substring is not found in source_string, the Oracle INSTR function will return 0. Notes:
Example Usage: INSTR('Welcome to PSOUG.org', 'o') would return 5 (Finds the first occurrence of 'o') Related Links: Related Code Snippets:
|
Home | Search | Code Library | Sponsors | Privacy | Terms of Use | Contact Us | © 2003 - 2025 psoug.org |