Answers for "updating json object in mysql database"

0

updating json object in mysql database

SET @data = '{  
    "Person": {    
       "Name": "Homer", 
       "Hobbies": ["Eating", "Sleeping"]  
    }
 }';
SELECT JSON_SET(@data, '$.Person.Name', 'Bart', '$.Person.Hobbies[1]', "Mischief") AS 'Result';
Posted by: Guest on April-22-2020

Code answers related to "updating json object in mysql database"

Code answers related to "Javascript"

Browse Popular Code Answers by Language