最近写了一个爬虫, 并需要去除一些内容, 用的是 pythonreplace 方法, 但这个方法不会改变原有字符串, 所以数据库中存了很多 不干净 的数据, 但数据太多了, 删掉重新爬取需要很多时间, 那如何使用 sql 将这些数据更新一下呢?

update your_table set your_column = replace(your_column, 'old_str', 'new_str')

参考: https://www.w3cschool.cn/sql/sql-replace.html