日期:2014-05-18 浏览次数:20497 次
select b.r_id,b.gametag_key ,(select game_key from B a )as game_key from A b where b.r_id=a.r_id
select b.r_id,b.gametag_key ,a.game_key from A b ,B a where b.r_id=a.r_id
------解决方案--------------------
select b.*,a.gametag_key from (select a.r_id,a.gametag_key from a)a,b where a.r_id=b.r_id
------解决方案--------------------
select a.r_id,a.gametag_key,b.game_key
from a
inner join b on a.r_id = b.r_id
------解决方案--------------------