我正在尝试从 mysql 列中的嵌套 json 中搜索 userId 值 22
我的json是
'{
"data": [
{"calendarId":"11","userId": "12"},
{"calendarId":"21","userId": "22"}
]
}'
我尝试了以下语法:
1. where JSON_EXTRACT(column_field,'$.userId') = 22 2. where JSON_EXTRACT( column_field, '$.data[*].userId' ) = 22
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号