部分中文索引失效诡异问题
ko300 2016-08-04 11:47:47 有个表6百万条数据左右,列大概100多个,一个varchar(100) 的字段,建了非聚集索引
select * from table where col like 'aa' 英文,索引有效,所有英文或数字都有效
select * from table where col like '测试a' 中英文混合,索引有效
select * from table where col ='测试' 中文,索引有效
select * from table where col like '测试' 索引无效,小于4个字符纯中文,试了都是无效
但
select * from table where col like '测试测试' 索引有效,4个中文以上都有效
select col from table where col like '测试' 索引有效
有人有过类似经验吗