Ciao a tutti
qualcuno mi spiega questo mistero,
questa query non restituisce niente nonostante il valore Linda Blair (I), Linda Denise Blair e' presente nella tabella actor.performer_aka
Codice PHP:
SET @variable = 'Linda Denise Blair';
SELECT
actor.actor_id,
actor.nome,
actor.performer_aka,
ptgweb.alias,
ptgweb2.websites
FROM
ptgweb
INNER JOIN actor ON ptgweb.actor_id = actor.actor_id
INNER JOIN ptgweb2 ON actor.actor_id = ptgweb2.actor_id
WHERE
actor.performer_aka LIKE concat ('%',@variable,'%')
OR
ptgweb.alias LIKE concat ('%',@variable,'%')
OR
ptgweb2.websites LIKE concat ('%',@variable,'%')