SQL efficiency - [=] vs [in] vs [like] vs [matches]

后端 未结 4 2144
不知归路
不知归路 2021-02-19 09:11

Just out of curiosity, I was wondering if there are any speed/efficiency differences in using [=] versus [in] versus [like] versus [

4条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-19 09:51

    it depends on the underlying SQL engine. In MS-SQL, for example (according to the query planner output), IN clauses are converted to =, so there would be no difference

提交回复
热议问题