I have 5000 plus records where I need to remove part of the value of a field
In all cases, the part I wish to remove is "Job Description - "
Hence update so that "Job Description - Doctor" becomes "Doctor"
So (I guess) I am looking to
UPDATE mytable
SET myfield = {some regex}
where myfield like '%Job Description - %'
Any advice would be much appreciated
The answer is as follows:
UPDATE mytable
SET myfield = REPLACE(myfield, 'Job Description - ','');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With