最简单的方法,看这里了
方法一:
select a.name,b.email from a
inner join b on a.nameid=b.nameid
where a.fenleiid=3
方法二:
select a.name,b.email from a,b
where a.nameid=b.nameid and a.fenleiid=3
select a.name,b.email from a join b on a.nameid = b.nameid where a.fenleiid = 3;
Select A.name,B.email From A,B Where A.nameid=B.nameid And A.fenleiid=3
select a.name,b.email from a inner join b on a.nameid=b.nameid and a.fenleiid=3
select a.name, b.email where a.fenleiid=3 and a.nameid=b.namid