In the project to use the Oracle INSTR this function, by the way carefully learn this knowledge again.
Oracle, you can use the INSTR function to judge a string to determine whether it contains the specified character.
Its syntax is:
INSTR (string, substring, position, occurrence)
which
String: Represents the source string;
SUBSTRING: Represents the substring to look for in the source string;
Position: Represents the start position of the lookup, which is optional and defaults to 1;
Occurrence: The representative wants to find out the first occurrence of the substring from the source character, this parameter is optional, default is 1;
If the value of the position is a negative number, the representation is looked up from right to left.
The return value is: The position of the string found.
For the INSTR function, we often use this: to find the position of a specified substring from a string.
For example:
The display result of the SELECT Instr (' Hello Word ', ' O ',-1, 1) ' String ' from Dual is
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.