A simple method to modify the score in the middle of a field in mysql
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.