?? MySQL? json ?? ??? ???? ??? ?? ??? ??? ??????.
INSERT INTO `json` (`notes`) VALUES ('[{"name":1}]');
我用上述語句插入json數(shù)組,navicat的顯示是正常的
當(dāng)我用UPDATE json SET notes =json_array_append(notes, '$' , '["sa"]' ) WHERE ID=6;
? json? ???? ????? ??? ?????
??? ??????
json_array_append(notes, '$' , '["sa"]' )
改為json_array_append(notes, '$' , CAST('["sa"]' AS JSON))