select t.gid,t.team,t.country,t.group
from
(select a.gid,a.team,a.country,a.group,b.name
from a ,b
where a.gid=b.gid
) t
where t.name='tom'
and t.gid=2
注意:a.gid=b.gid,如果数据库中有异常关联不到的数据就不能用这个条件!
from
(select a.gid,a.team,a.country,a.group,b.name
from a ,b
where a.gid=b.gid
) t
where t.name='tom'
and t.gid=2
注意:a.gid=b.gid,如果数据库中有异常关联不到的数据就不能用这个条件!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货