Update-phpmysql replaces a string in the delimiter

Source: Internet
Author: User
Suppose there is a column in mysql. a user adds three new documents: "Hello, I am very good, JoyseChen likes you." "No, I am very bad, JoyseChen likes you." "Are you good? can you catch the column ?" for example, I want to change the value of this string "JoyseChen" to "Chen... assume that mysql has a column
A user adds three new documents:
"Hello, I'm fine. Joyse Chen likes you"
"Not good. I am not good. Joyse Chen likes you"
"How are you? I'm fine. JoyseChen likes you"

Whether the field value can be captured, such as the string "Joyse Chen"
I want to change it to Chen Loinse.
I can change this string.
And won't be moved to other strings?
Like this:

"Hello, I'm fine. Chen Loinse likes you"
"Not good. I am not good at Chen Loinse"
"Are you good"

Reply content:

Assume that mysql has a column
A user adds three new documents:
"Hello, I'm fine. Joyse Chen likes you"
"Not good. I am not good. Joyse Chen likes you"
"How are you? I'm fine. JoyseChen likes you"

Whether the field value can be captured, such as the string "Joyse Chen"
I want to change it to Chen Loinse.
I can change this string.
And won't be moved to other strings?
Like this:

"Hello, I'm fine. Chen Loinse likes you"
"Not good. I am not good at Chen Loinse"
"Are you good"

Update TABLE set text = replace (text, 'jobse', 'Chen loinse ')

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.