📅  最后修改于: 2022-03-11 15:02:16.351000             🧑  作者: Mango
SELECT
user.user_id,
user.user_name,
user_group.user_group_id,
user_group.group_name
FROM user
LEFT JOIN user_group on JSON_CONTAINS(user.user_groups, CAST(user_group.user_group_id as JSON), '$')