Answers for "mysql json change key"

0

mysql json change key

UPDATE `my_table` 
SET `my_col` = JSON_INSERT(
                           JSON_REMOVE(my_col, '$.oldKeyValue'), 
                           '$.newKeyValue', 
                           JSON_EXTRACT(my_col, '$.oldKeyValue')
                          );
Posted by: Guest on June-07-2020

Code answers related to "mysql json change key"

Code answers related to "Javascript"

Browse Popular Code Answers by Language