Mysql: impossible where noticed after reading const tables

前端 未结 2 930
南方客
南方客 2021-01-22 15:33

i have one query:

SELECT l.id, title 
FROM (SELECT id 
      FROM news 
      WHERE (title LIKE \'%football predictions argentina%\' OR text LIKE \'%football pre         


        
2条回答
  •  后悔当初
    2021-01-22 15:52

    In addition to Shadow's answer, MySQL's explain will show:
    Impossible WHERE noticed after reading const tables
    when a where condition on a non-indexed field is not matched along with a matched where condition on an indexed field.

    It will show
    no matching row in const table
    when a where condition on an indexed field is not matched.

提交回复
热议问题