提高應用程序性能之數據庫篇

1、什麼是查詢優化器 有如下兩個查詢: select * from employees where ID<1000 and FirstName ='Robert'  select * from employees where FirstName='Robert' and  ID<1000 在上面的查詢中如果ID是主鍵,並且是自增長列,那麼誰的速度快? 答案:效率是一樣的,爲什麼?SQL SERVE
相關文章
相關標籤/搜索