J in Substr (Start,length) and substring (start,stop)

Source: Internet
Author: User

J in Substr (Start,length) and substring (start,end)

Substring

1 The substring method is used to extract the character of a string intermediary between two specified subscripts (Baotou does not wrap the tail)

2 substring (start,end) Start and end position, zero-based index

End: String subscript, The Terminator is not included in the subscript. For example, substring (0,3), that is, starting from subscript 0, intercept to subscript 3 of the previous (not including the subscript 3 of the character)

Substr

The 1 substr method is used to return a substring of the specified length starting at the specified position. SUBSTR (start [, length])

2 truncate the direct-length string. substr (2,3), starting with a subscript of 2, intercepts a string of length 3. SUBSTRING (2,3), which starts with a subscript of 2, intercepts the string of the previous digit labeled 3, which is the 1-bit character intercept.

J in Substr (Start,length) and substring (start,stop)

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.