阿尔哦覅和 发表于 2018-9-27 13:45:27

【原创】MySQL5.7 JSON类型使用介绍

INSERT INTO json_test VALUES (1,'{  
    "programmers": [{
  
      "firstName": "Brett",
  
      "lastName": "McLaughlin",
  
      "email": "aaaa"
  
    }, {
  
      "firstName": "Jason",
  
      "lastName": "Hunter",
  
      "email": "bbbb"
  
    }, {
  
      "firstName": "Elliotte",
  
      "lastName": "Harold",
  
      "email": "cccc"
  
    }],
  
    "authors": [{
  
      "firstName": "Isaac",
  
      "lastName": "Asimov",
  
      "genre": "sciencefiction"
  
    }, {
  
      "firstName": "Tad",
  
      "lastName": "Williams",
  
      "genre": "fantasy"
  
    }, {
  
      "firstName": "Frank",
  
      "lastName": "Peretti",
  
      "genre": "christianfiction"
  
    }],
  
    "musicians": [{
  
      "firstName": "Eric",
  
      "lastName": "Clapton",
  
      "instrument": "guitar"
  
    }, {
  
      "firstName": "Sergei",
  
      "lastName": "Rachmaninoff",
  
      "instrument": "piano"
  
    }]
  
}');


页: [1]
查看完整版本: 【原创】MySQL5.7 JSON类型使用介绍