“ekstrak json” Kode Jawaban

ekstrak json

+----+--------+-------+-------+---------------------------------+
| id | name   | price | stock | attr                            |
+----+--------+-------+-------+---------------------------------+
|  2 | Shirt  | 10.50 |    78 | {"size": 42, "colour": "white"} |
|  3 | Blouse | 17.00 |    15 | {"colour": "white"}             |
+----+--------+-------+-------+---------------------------------+
  
SELECT name FROM clothes WHERE JSON_EXTRACT(attr, '$.size') = 42;
SmokeFrog

json_extract dalam kueri non -asli

Query query = em.createQuery("select o from Product o FUNCTION('JSON_EXTRACT', o.des, '$.org') = :org");
Encouraging Eel

Jawaban yang mirip dengan “ekstrak json”

Pertanyaan yang mirip dengan “ekstrak json”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya