Get the App
SLTechnology News&Howtos  ›  Database  › 

How to replace specified field strings in batch in MySQL

Shulou Source: shulou.com Published: 2022-05-31 18:58:08 11月14日 Update

In this issue, the editor will bring you about how to replace the specified field strings in batches in MySQL. The article is rich in content and analyzes and describes for you from a professional point of view. I hope you can get something after reading this article.

MySQL batch replace specified field string statement

UPDATE Datasheet name SET field name = replace (field name, string to be replaced, replace with) WHERE sets the condition

For example, today, our site found that the title of the article on the linux command is not very good. In the past, we used to use the mkdir command under linux to use the detailed explanation-linux to create a directory command.

This format does not make much use of search because few people search mkdir using detailed explanation and mkdir under linux to search for mkdir commands, mkdir parameters,

Mkdir, usage, linux mkdir (in the middle with a space instead of a "down" word) correction, comprehensive consideration of the unified change to linux mkdir command parameters and usage details-linux create directory command

Obviously this contains more keywords is more in line with the user's search habits. Change as soon as possible, but at present this site has issued hundreds of orders, manual modification will be exhausting.

So, enter, a few orders to fix ha ha.

UPDATE `linuxso_ archives` SET `title` = replace (title, linux, linux) WHERE `typeid` = 18

UPDATE `linuxso_ archives`SET `title` = replace (title, detailed description of command usage, command parameters and usage) WHERE `typeid` = 18

The above is how to replace specified field strings in batch in MySQL shared by Xiaobian. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Tags: Commands fields characters strings search parameters content articles more directories analysis professional small and medium key words rich content that is manual data data tables Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Docker Shulou Tech Info Linux Xiaomi