difference between replace and regexp_replace and the difference between like and InStr

Source: Internet
Author: User

Repalce (STR_SOURCE,STR1,STR2) replaces the STR1 string in Str_source with the STR2 string,
When str2 is null or ' ', the next function is the same

Replace (STR_SOURCE,STR1) removes the str1 string from the Str_source

Regexp_replace (STR_SOURCE,PATTERN_STR) rejects the pattern_str string in Str_source

The difference between like and InStr in Oracle is that it is more efficient to InStr without creating an index, but not as much as it is.
After creating an index like is much more efficient than InStr

Translate (' Target string ', ' source string ', ' destination string ') when the target string appears with the same character as the source string,
will be replaced with the destination string


This article from "Essays" blog, Declined reprint!

difference between replace and regexp_replace and the difference between like and InStr

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.