SUBSTRING, this function is used to find a string of strings, the function of the use of high frequency.
Sample string: "2011-11-17"
The function to ask for a string in Oracle is: SUBSTR
The syntax for the SUBSTR function is:
substr (String, start_position, [length])
String: Source string
Start_position: The starting position of the first character of the substring in the source string
Length: substring lengths
Test results:
Oracle stipulates:
1) When start_position==0, the starting position of the substring is 1, that is, starting from the first character;
2 when start_position<0, the start position of the string is pushed back from the end of the tail.
3) The length parameter can be default.
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.