Get the App
SLTechnology News&Howtos  ›  Database  › 

A simple method to modify the score in the middle of a field in mysql

Shulou Source: shulou.com Published: 2022-06-01 19:41:53 09月30日 Update

Next, let's learn about the simple way to modify the score in the middle of the field in mysql. I believe you will benefit a lot after reading it. The text is not much in essence. I hope that the simple way to modify the score in the middle of the field in mysql is what you want.

If you encounter a small requirement, you want to modify the score in the middle of the field. Replace in mysql can be implemented.

Mysql > select * from syk_test +-+ | user | host | +-+-+ | repluser |% | syk |% | mysql.sys | localhost | | root | localhost | +-+-+ 4 rows in set (0.00 sec) ) mysql > update syk_test set host = replace (host 'local','my') Query OK, 2 rows affected (0.00 sec) Rows matched: 4 Changed: 2 Warnings: 0mysql > select * from syk_test +-+-+ | user | host | +-+-+ | repluser |% | syk |% | mysql.sys | myhost | | root | myhost | +-+-+ 4 rows in set (0.00 sec)

Replace (object, search,replace) replaces all search in object with replace.

After reading this article, many readers will want to know more about it. If you want to get more industry information, you can follow our industry information section.

Tags: Scores fields methods content more industry affirmation benefit a lot information text friends columns articles readers information needs Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Shulou Technology MySQL Microsoft Docker