SQL LIKE with no wildcards the same as '='?

前端 未结 3 1778
醉梦人生
醉梦人生 2020-12-11 00:05

I know this is a pretty basic question, and I think I know the answer...but I\'d like to confirm.

Are these queries truly equivalent?

SELECT         


        
3条回答
  •  执念已碎
    2020-12-11 01:04

    As @ocdecio says, if the optimizer is smart enough there should be no difference, but if you want to make sure about what is happening behind the scenes you should compare the two query's execution plans.

提交回复
热议问题