I have a column in my MySQL table that is type json. I am trying to update a row with a SQL script.
This is the JSON I am attempting to insert into the column
{
"HE": [{
"isbn": "1234",
"type": "Some text"
}],
"HS": []
}
I have tried quite a few different ways with no luck, below is the method of updating a row I am most familiar with.
UPDATE `textbooks`
SET `isbns` = {"HE":[{"isbn":"9781337763639","type":"Single Term HW &
eBook University"}],"HS":[]}
WHERE `id` = 939;