How Oracle splits a field's content into multiple lines of display

Source: Internet
Author: User

Example:

Select Regexp_substr (' 1,2,3,4,5 ', ' [^,]+ ', 1, level)
From dual
Connect by Level <= Regexp_count (' 1,2,3,4,5 ', ' [^,]+ ')

Interpretation:

The REGEXP_SUBSTR function is formatted as follows:

function Regexp_substr (String, pattern, position, occurrence, modifier)

__SRCSTR: A string that requires regular processing

__pattern: Regular expression for matching

__position: Starting position, starting with the first character of the regular expression match (default = 1)

__occurrence: Identifies the first few matching groups, which defaults to 1

__modifier: The pattern (' I ' is not case-sensitive for retrieval; ' C ' is case-sensitive for retrieval. The default is ' C '. )

How Oracle splits a field's content into multiple lines of display

Related Article

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.