嗨,所有新的数据库外连接和内部连接都修改为
下面的代码FROM leaf_star_stem_bud, leaf_star_item, cosmic_tank
WHERE leaf_star_stem_bud.power_company_key = '6aa5'
And leaf_star_item.parent_key = 'eaab1'
And cosmic_tank.master_key = leaf_star_item.cost_code_key
And leaf_star_stem_bud.parent_key =* leaf_star_item.master_key
到
FROM leaf_star_stem_bud
RIGHT OUTER JOIN leaf_star_item ON
leaf_star_stem_bud.parent_key = leaf_star_item.master_key , cosmic_tank
WHERE leaf_star_stem_bud.power_company_key = '6aa5'
And leaf_star_item.parent_key = 'eaab1'
And cosmic_tank.master_key = leaf_star_item.cost_code_key
但查询得不到同样的结果,请你帮帮我
答案 0 :(得分:1)
INNER JOIN 或加入或,:
RIGHT JOIN 或 RIGHT OUTER JOIN :
LEFT JOIN 或 LEFT OUTER JOIN :
了解更多信息:
What is the difference between Left, Right, Outer and Inner Joins?