woocommerce mysql select all product variations
select * from wp_postmeta where post_id in ( select id from wp_posts where post_parent = PRODUCT_ID and post_type = 'product_variation' ) and (meta_key = '_regular_price' or meta_key = '_sale_price');