Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

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';
Comment

PREVIOUS NEXT
Code Example
Javascript :: react chunk file too large 
Javascript :: GET method firebase realtime database react 
Javascript :: javascript number if .00 truncate 
Javascript :: create or update in sequelize 
Javascript :: strict mode 
Javascript :: react merge two objects 
Javascript :: react forward ref 
Javascript :: react build size 
Javascript :: Javascript Event Loop 
Javascript :: change the color of toast toastr js 
Javascript :: mongodb insertmany 
Javascript :: sortable jquery 
Javascript :: javascript span style 
Javascript :: get month from timestamp javascript 
Javascript :: prettier printWidth 
Javascript :: How to iterate elements in an object 
Javascript :: how copy url of page to clipboard javascript 
Javascript :: electron js web reference to use node 
Javascript :: permutation and combination program in javascript 
Javascript :: ajax laravel get values from form 
Javascript :: url decoding js 
Javascript :: bootstrap modal close on form submit in react 
Javascript :: javascript find factorial 
Javascript :: an arrow function 
Javascript :: wheel 
Javascript :: how to use fetch in gatsby 
Javascript :: react pass object as props 
Javascript :: aos animation 
Javascript :: methods javascript 
Javascript :: count length of a string javascript 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =