登录

sql优化or

如何优化sql查询select id from user where phone=’131′ or phone=’139′


# PHP
Alone. Alone. 2116 天前 1012 次浏览

全部回复(1) 我要回复

  • 无忌哥哥

    无忌哥哥2018-06-14 11:04:32

    explain select id from user where phone=131 union select id from user where phone=139;试试这条语句

    回复
    0
  • 取消 回复 发送