当前位置: 代码迷 >> Sql Server >> 關於效率的問題解决方法
  详细解决方案

關於效率的問題解决方法

热度:0   发布时间:2016-04-27 15:29:12.0
關於效率的問題
請問:
select * from a,b where a.no=b.no

select * from a inner join b on a.no=b.no
有何區別?

另:
select * from a inner join b on a.no=b.no where a.isposted='y'

select * from a inner join b on a.no=b.no and a.isposted='y'
有何區別?

------解决方案--------------------
SQL code
--請問: select * from a,b where a.no=b.no --與 select * from a inner join b on a.no=b.no --有何區別?
------解决方案--------------------
对数据库服务器来说,似乎无不同,最后服务器会转为相同的程序来执行.
  相关解决方案