Sql语句,查询效率

数据库:Sql Server

数据量:百万级

语句1:select count(*) from BF_BPRODUCT 

执行结果:

语句2:select * from BF_BPRODUCT where prodname like '医%'
语句3:select CPID, QYID, PRODNAME from BF_BPRODUCT where prodname like '医%'

 

语句4:select * from BF_BPRODUCT where prodname like '%医%'
语句5:select  CPID, QYID, PRODNAME from BF_BPRODUCT where prodname like '%医%'

 

语句6:select * from BF_BPRODUCT where charindex('',prodname,1)>0
语句7:select  CPID, QYID, PRODNAME from BF_BPRODUCT where charindex('',prodname,1)>0

 

posted @ 2018-02-27 14:23  风戏  阅读(146)  评论(0编辑  收藏  举报


,只是自己微!(TIE