You are on page 1of 1

CustomerName

LastName

update docs set content = JSON_SET(content, "$[1]", "I am ID2") where id = 2;

UPDATE docs a
SET a.content = JSON_SET(
a.content, (
SELECT b.content
FROM docs b
WHERE JSON_SEARCH(b.content, 'one', '14')
), "74"
)
where id = 2;

SELECT JSON_SEARCH('["3", "2", "5", "1", "14", "7"]', 'one', '3')

SET a.content = (
JSON_SET(content, value, "74")
)

SELECT JSON_SEARCH(a.content, 'one', '1') as value FROM docs a

You might also like