For best results, you need to create a FULLTEXT index for your data.
CREATE TABLE mytable (id INT NOT NULL, data TEXT NOT NULL, FULLTEXT KEY fx_mytable_data) ENGINE=MyISAM SELECT * FROM mytable WHERE MATCH(data) AGAINST ('+word1 +word2 +word3' IN BOOLEAN MODE)
Note that to index single-letter words (as in your example) you need to set ft_min_word_len to 1 in MySQL confguration.
This syntax may work even if you don't have an index (so far your MyISAM table), but will be pretty slow.
source share