读书人

这两条话语的查询效率的比较哪条效率

发布时间: 2012-09-08 10:48:07 作者: rapoo

这两条语句的查询效率的比较,哪条效率高
select * from table1 where flag=1 and username in (select name from table2 where forbid=no and joinstate in(0,1) and group=12)

select * from table1,table2 where flag=1 and table1.username=table2.name and forbid='no' and joinstate in(0,1) and group=12

[解决办法]

探讨
select * from table1 where flag=1 and username in (select name from table2 where forbid=no and joinstate in(0,1) and group=12)

select * from table1,table2 where flag=1 and table1.username=table2.na……

读书人网 >oracle

热点推荐