-3
select sub.sub_product_image_path, sub.sub_product_id
from `portal_products(sub category)` sub ,
`portal_products(main category)`main
where sub.product_id=main.product_id ;
select sub.sub_product_image_path, sub.sub_product_id
from `portal_products(sub category)` sub
where sub.product_id=35;
使用聯盟或聯盟所有會工作 – Hytool
要將'portal_products(子類別)'描述爲表名的不好選擇,那麼可以低估 – Strawberry