Get the App
SLTechnology News&Howtos  ›  Servers  › 

Json operation of mysql8

Shulou Source: shulou.com Published: 2022-06-02 05:10:27 10月01日 Update

Insert into myTable (details,'$ yearbook details) values (5 Magi 2019 cast ('{"": [{"u": 1, "t": 123}]}'as json) SELECT id FROM myTable where id=4 and json_contains_path (details- >'$[*]', 'one','$ [*] .'); update myTable set details=JSON_ARRAY_APPEND (details,'$ [1] .', cast ('{"u": 2, "t": 999}'as json)) where id=5

Tags: Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft vpn Shulou Tech Info OPPO Reno Shulou Information