多表查询:
此方法默认内联查询:
–inner join
1 | select pa.product_id, pp.aa, p.a from fb_product2account pa, fb_product_price pp, fb_product p |
此方法通用内联查询、左查询、右查询、外查询
1 | select acc.acc_id,pprice.price,pprice.country,pro.product_name,pro.product_number, coun.* from fb_product2account acc |
1 | select * from fb_product2account pa |
别名:
1 | select acc.acc_id,pprice.price,pprice.country,pro.product_name,pro.product_number, coun.code country_code, coun.en_name country_en_name, coun.zh_name country_zh_name from fb_product2account acc |