Parse JSON in MySQL

前端 未结 3 1664
滥情空心
滥情空心 2020-12-16 08:17

I need help on how to parse JSON data in MySQL.

I can parse a column named config containing data such as:

{\"encounterId\":\"f45bf821-98e1-4496-82ef         


        
3条回答
  •  情书的邮戳
    2020-12-16 08:47

    Either you could use a cumbersome MySQL UDF for parsing JSON for MySQL like for example https://github.com/ChrisCinelli/mysql_json

    ...but a better way would be to pull out the JSON and parse it in your app, and perhaps convert the data to a more suited schema for your intentions.

提交回复
热议问题