Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

join on JSON field

  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), '$')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #join #JSON #field
ADD COMMENT
Topic
Name
8+7 =