please advise following sql:
I wish to replace text in a field where value similar "Priority: 1" with "Priority: 2". However text to find could be "Priority: 1" OR "Priority: 2" OR "Priority: 3" etc. Was thinking of using regexp along with concat to find any value that matches the pattern
An example of complete data in field:
<span class='badge badge-info'>Priority: 1</span><br>• Lead submitted: <br>• Existing customer: <br>• Car of interest:
In this instance I would like to replace "Priority: 1" with "Priority: 2"
SQL so far...
UPDATE
response
SET
notes = REPLACE(
notes,
CONCAT('Priority: ', REGEXP '\d'),
'Priority: 3'
)
WHERE actionid = '2198602'