Any point in using LIMIT in EXISTS query?

后端 未结 3 2196
Happy的楠姐
Happy的楠姐 2021-02-19 06:53

Is there any performance benefit in adding a LIMIT to an EXISTS query, or would MySQL apply the limit on its own?

Example:

IF E         


        
3条回答
  •  遇见更好的自我
    2021-02-19 07:30

    Fiddling with my query a bit, I noticed that EXISTS still returns 1 if LIMIT is set to 0. I assume this indicates that it's being ignored.

提交回复
热议问题