📜  加入 JSON 字段 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:16.351000             🧑  作者: Mango

代码示例1
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), '$')