本文共 535 字,大约阅读时间需要 1 分钟。
sql 替换数据库字符串
How to replace strings in a column in a database table? For example, I would like to replace http://www.systutorials.com
with ://www.systutorials.com
in a content
column of a table post
.
如何替换数据库表中的列中的字符串? 例如,我想在表post
的content
列中将替换为
http://www.systutorials.com
。
You may use a SQL statement as follows.
您可以如下使用SQL语句。
postset content = replace(content, 'http://www.systutorials.com', 'https://www.systutorials.com')where content like '%http://www.systutorials.com%'
翻译自:
sql 替换数据库字符串
转载地址:http://vfowd.baihongyu.com/