table
id | word
SELECT id FROM table WHERE
word = "hello" OR
word = "ello" OR
word = "llo" OR
word = "lo" OR
word = "o"
I need to get only the first identifier that is found. If not the first, then the second. If not the second, then the third ....
Is it possible to get only the first OR that is in the database without checking all of them?
source
share