Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. 1. Mysql Multiple Table Join Query
  2. $query = "SELECT tbl_product.*, tbl_category.catName, tbl_brand.brandName FROM tbl_product
  3. INNER JOIN tbl_category
  4. ON tbl_product.catId = tbl_category.catId
  5. INNER JOIN tbl_brand
  6. ON tbl_product.brandId = tbl_brand.brandId
  7. ORDER BY tbl_product.productId DESC";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement