当前位置: 代码迷 >> Oracle管理 >> 这两条话语的查询效率的比较,哪条效率高
  详细解决方案

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

热度:73   发布时间:2016-04-24 05:06:23.0
这两条语句的查询效率的比较,哪条效率高
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……
  相关解决方案