提问者:小点点

是否可以在Mysql中替换链接并使其目标为空?


我有一个名为description数据库表列,在这个列中有大约1000行。每一行可以包含多个链接。例如:

Some description text
<a href="example11.com">Example 11</a>
description text is continue
<a href="example22.com">Example 22</a>
more description text

我可以更新所有的链接和添加目标空白。在此示例中,文本应更改如下:

Some description text
<a href="example11.com" target="_blank">Example 11</a>
description text is continue
<a href="example22.com" target="_blank">Example 22</a>
more description text

摘要是想要更改链接并添加目标空白。

<a href="example11.com">Example 11</a> 

<a href="example11.com" target="_blank">Example 11</a>

共1个答案