I have the following table
product_id product_name image_path misc
---------- -------------- ------------ ------
1 flex http://firstpl... {"course_level_id":19,"group_id":"40067"}
2 Android http://firstpl... {"course_level_id":20,"group_id":"40072"}
So, how can I get the name product_name, image_path and only the value "group_id", for example "40067" from the column "misc".
I tried to execute the query below, but it returns 1/0 in the Misc column.
SELECT product_name,image_path,misc REGEXP '(.*\"group_id\":*)' as Misc FROM ref_products where product_id=1
Any ideas guys how to do this?
source
share