简体   繁体   中英

Parse JSON using SQL and Amazon Aurora DB

I know there is a way with regular MySQL 5.7 to parse JSON values. But that doesnt seem to work with Aurora.

I have stored in records a field called ppain. Its contents are like this;

["Shoulder_Left","Knee_Right","Wrist_Left","Ankle_Right","Back"]

So I want to get a count of unique ppain values in my SELECT query.

CORRECTION: AWS RDS supports MySQL 5.7 but not Aurora... (however AWS do say they're actively working on it).

UPDATE: AWS Aurora RDS now supports MySQL 5.7 ( https://aws.amazon.com/blogs/aws/amazon-rds-update-support-for-mysql-5-7/ )


If I'm not mistaken Aurora is (currently) based on MySQL 5.6...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM