Help with simple MySQL Query

by 5 replies
I have very little SQL experience and have a problem with a query that seems relatively easy. It's returning a null set and SQL Explain says it's an impossible where.

Here's the query:
SELECT 'password' FROM `album` WHERE `uid`=124 AND instr('title', '21.01')

Here's the DB structure:

Here's the actual record with the matching uid and title:
#programming #mysql #query #simple
Avatar of Unregistered

Trending Topics