首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

请教SQL运行效率

2012-01-26 
请问SQL运行效率id,reid都有索引-------------------selectcount(id)from[tab]whereid *reid **-------

请问SQL运行效率
id,reid都有索引
-------------------
select   count(id)   from   [tab]   where     id= '* '   reid= '** ' "
------------------
先读取select   top   1   reid   from   [tab]   where     id= '* '
再比较rs( "reid ")是否=**
-------------------------

请问哪一个效率好一些?谢谢!!

[解决办法]
下面的好

热点排行