SQL where field in vs. where field = with multiple ors?

前端 未结 5 836
-上瘾入骨i
-上瘾入骨i 2021-02-07 09:01

Which of these is better to use in regard to performance? ...in regard to readability / understandability? ...in regard to accepted standards?

SELECT *
FROM Wher         


        
5条回答
  •  深忆病人
    2021-02-07 10:04

    All major engines (MySQL, PostgreSQL, Oracle and SQL Server) will optimize it to exactly same plans.

提交回复
热议问题