I'm trying to update my mySql database. the value of Value is
{
"Subject": "Subject here",
"Content": "The content here",
"TextContent": "Here text content goes",
"To": "this is to user<to@example.com>",
"From": "Name of User<from@example.com>"
}
Now what to do I've to search for From tag and then Replace the Name of User<from@example.com> to other user<other@example.com>.
The value after From tag is unknown for me. so i want to replace the whole things in between "" quotes.
for that what I'm doing currently
UPDATE `Table_Name`
SET Value= REPLACE(Value,'Name of User<from@example.com>','other user<other@example.com>')
WHERE Name = 'Name_of_field' && INSTR(Value,'From')>0;
I know this is wrong way to do this. please suggest me a way because here I'm using Name of User<from@example.com> that is unknown for me.