Last active
February 18, 2022 16:34
-
-
Save maxout/bd35754fa923bc8c00c11e05827ce3de to your computer and use it in GitHub Desktop.
SELECT from JSON String
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT p.id,p.manufacturer_number ,pt.product_id,JSON_EXTRACT(custom_fields, '$.custom_rim_details_number') | |
FROM product_translation pt | |
INNER JOIN product p ON pt.product_id = p.id | |
WHERE JSON_EXTRACT(custom_fields, '$.custom_rim_details_number') IS NOT NULL | |
AND JSON_EXTRACT(custom_fields, '$.custom_rim_details_number') != 'null'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment