我有 3 张桌子
_virtuemart_product_medias
包含
'Full texts' 'id' 'virtuemart_product_id' 'virtuemart_media_id' 'ordering'
_virtuemart_products_pl_pl
包含
'virtuemart_product_id' 'product_s_desc' 'product_desc' 'product_name'
'metadesc' 'metakey' 'customtitle' 'slug'
_virtuemart_medias
包含
'virtuemart_media_id' 'virtuemart_vendor_id' 'file_title'
'file_description' 'file_meta' 'file_mimetype' 'file_type'
'file_url'
怎么获得_virtuemart_products_pl_pl (*), _virtuemart_products_pl_pl (*)
在哪里
_virtuemart_products_pl_pl.virtuemart_product_id = _virtuemart_product_medias.virtuemart_product_id
AND
_virtuemart_product_medias.virtuemart_media_id = _virtuemart_medias.virtuemart_media_id
我需要sql查询,但我不知道如何构建它