View Full Version : Where ******* Contains "******"?
is there a "CONTAINS" clause for MySQL or something similar?
You can use LIKE with % wildcards. LIKE '%in%' would find any word containing 'in'.
Admin
04-02-2002, 04:39 AM
SELECT * FROM tblName WHERE (INSTR(haystack,'needle')>0
Originally posted by FireFly
SELECT * FROM tblName WHERE (INSTR(haystack,'needle')>0 Well that's certainly better than what I suggested. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.