Hey,
Is there any possibility to use the LOCATE() function in a SELECT * FROM WHERE LOCATE() statement?
For example I have following table:
CREATE TABLE T (KEY INT PRIMARY KEY, WORD VARCHAR(20)); INSERT INTO T VALUES (1, 'Hello'); INSERT INTO T VALUES (2, 'World');
Now I would like to SELECT all the rows where 'o' is on 5th place
like
SELECT * FROM T WHERE LOCATE('o') = 5;