I want to select all fields of several table and fetch result separate but mysql return all rows together:
SELECT prod_product.*
,pub_comment.*
FROM prod_product
INNER JOIN pub_comment ON (prod_product.id = pub_comment.itemId)
WHERE prod_product.id=7744
Is there any way that i could fetch each table rows separately?
I try @prod:=prod_product.*, @comment:=pub_comment.* but mysql didn't allow me to store more than 1 row.