sql >> Databasteknik >  >> RDS >> Mysql

Hur man tolkar JSON i MYSQL trigger

Du kan installera common_schema . Då borde du kunna göra något så här:

select common_schema.extract_json_value(d.table1,'/multicast_id') as multicase_id,
common_schema.extract_json_value(d.table1,'/success') as success,
common_schema.extract_json_value(d.table1,'/failure') as failure,
common_schema.extract_json_value(d.table1,'/canonical_ids') as canonical_ids,
common_schema.extract_json_value(d.table1,'/results') as results,
common_schema.extract_json_value(d.table1,'/message_id') as message_id
from database d;


  1. Tvetydig kolumn i MySQL/Rails hitta metod

  2. Top-N-frågor och paginering i Oracle

  3. SQL-standard UPSERT-anrop

  4. Utöka en resultatuppsättning GROUP BY och HAVING