Open this example in the interactive library
Source code
SELECT json_insert('[1,2]','$[#]',3) AS updated;
Sample output
[
{
"updated": "[1,2,3]"
}
]
Open this example in the interactive library
SELECT json_insert('[1,2]','$[#]',3) AS updated;
[
{
"updated": "[1,2,3]"
}
]