A sql question# Database - 数据库
s*r
1 楼
I tried two following queries,
Select a.* from a
where a.id in (select id from b);
select a.* from a, b
where a.id=b.id
I assumed two queries shuold have same result. But actually the second query
have more results. Any idea?
Thanks,
Select a.* from a
where a.id in (select id from b);
select a.* from a, b
where a.id=b.id
I assumed two queries shuold have same result. But actually the second query
have more results. Any idea?
Thanks,