I'm trying to update a column in MySQL which > 100k entries. My column has value like
<div class="class1">
<div class="class2">
<span>
<a title="Search for Product"
href="${firstProductLink}/product/product.html">Search for product
</a>
</span>
<span>
<a title="Search for Product"
href="${firstProductLink}/sample/sample.html">Search for sample
</a>
</span>
<span>
<a title="Search for Product"
href="${secondProductLink}/product/product.html">Search for product
</a>
</span>
</div>
</div>
in this column I need to replace anchor tag has firstProductLink to empty, like
<div class="class1">
<div class="class2">
<span>
</span>
<span>
</span>
<span>
<a title="Search for Product"
href="${secondProductLink}/product/product.html">Search for product
</a>
</span>
</div>
</div>
I tried to find the index of href="${firstProductLink} by using LOCATE mysql method. Then I'm unable to find index of left and right anchor tag(). So that I can use replace mysql method.