1

如何在 MySQL 中解析嵌套的 JSON 数据?任何人都请帮助我。

示例 JSON 数据。

    [
  {
    "code": "01",
    "exits": "0",
    "enters": "0",
    "start_time": "00:00:00"
  },
  {
    "code": "01",
    "exits": "0",
    "enters": "0",
    "start_time": "00:15:00"
  },
  {
    "code": "01",
    "exits": "0",
    "enters": "0",
    "start_time": "00:30:00"
  }
]

我想被展示出来。

ID     code-start time     code-start time 
1       01-00:00:00        01-00:15:00  .....etc upto 96 columns

数据库表结构:

 id  auto_increment
 json_data  json
4

0 回答 0