[mysql] replace usage (replace part of the content of a field) [mysql] replace usage 1. replace into
2.replace(object,search,replace)
3.UPDATE updates part of the content in a field
Knowledge point expansion: mysql replace function replace() implements mysql to replace the string in the specified field MySQL replace string implementation method: The replace function in MySQL directly replaces a specific string in a field in the MySQL database. You no longer need to write your own function to replace it, which is very convenient to use. mysql replace function replace() UPDATE `table_name` SET `field_name` = replace (`field_name`,'from_str','to_str') WHERE `field_name` LIKE '%from_str%' illustrate: table_name - the name of the table field_name —— field name from_str - the string to be replaced to_str —— the string to be replaced For example:
This function is multi-byte safe, which means you don't have to consider whether it is Chinese characters or English characters. Summarize This is the end of this article about mysql replace field part and mysql replace function replace(). For more relevant mysql replace field content, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: This article takes you into the world of js data types and data structures
>>: Summary of ten Linux command aliases that can improve efficiency
A colleague asked for help: the login to the back...
Table of contents Docker image download Start mys...
Table of contents 1. Pull the image 2. Create a l...
I mainly introduce how to develop a lucky wheel g...
As the title says: The height is known, the width...
background Basic Concepts CSS filter property app...
Preface: I encountered a requirement to extract s...
After the National Day holiday, did any of you fi...
Ubuntu is a relatively popular Linux desktop syst...
For example, he enters: XML/HTML Code div#page>...
Table of contents 1. Problematic SQL statements S...
flex layout Definition: The element of Flex layou...
This article summarizes the notes for installing ...
Table of contents 01 What is the essence of a con...
<br />This article has briefly explained the...