skeen Posted July 19, 2006 Share Posted July 19, 2006 Hi people.I have a users table, and each user has a tag field that stores tags (strings of text) like so:php,mysql,phpfreaksHow do I return results where the tag field contains one of the tags? Quote Link to comment Share on other sites More sharing options...
fenway Posted July 19, 2006 Share Posted July 19, 2006 Well, depending on the nature of the tags, you might want to have a FULLTEXT index that spans all 3 columns, as opposed to having to write a query with lots of LIKE '%aaa%' OR .... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.