SQL Server: Index columns used in like?

后端 未结 3 440
春和景丽
春和景丽 2020-11-28 09:28

Is it a good idea to index varchar columns only used in LIKE opertations? From what I can read from query analytics I get from the following query:

SELECT *          


        
3条回答
  •  醉酒成梦
    2020-11-28 09:48

    In my experience the first %-sign will make any index useless, but one at the end will use the index.

提交回复
热议问题