MySQL multiple columns in IN clause

前端 未结 5 541
既然无缘
既然无缘 2020-12-05 17:32

I have a database with four columns corresponding to the geographical coordinates x,y for the start and end position. The columns are:

  • x0
  • y0
5条回答
  •  醉酒成梦
    2020-12-05 18:18

    MySQL allows row constructor comparisons like you show, but the optimizer didn't know how to use an index to help performance until MySQL 5.7.

    • https://dev.mysql.com/doc/refman/5.7/en/row-constructor-optimization.html

提交回复
热议问题