Insert mixed data into a JSON field.

suggest change

This inserts a json dictionary where one of the members is an array of strings into the table that was created in another example.

INSERT INTO myjson(dict) 
VALUES('{"opening":"Sicilian","variations":["pelikan","dragon","najdorf"]}');

Note, once again, that you need to be careful with the use of single and double quotes. The whole thing has to be wrapped in single quotes.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents