Feb 3, 2004 #1 aarrgghh Technical User Sep 5, 2002 60 US Hello, Does anyone know which version of MySQL supports searchs where a user could use "and" and "or" etc... So For example, "+term +term" would be that same as "term and term" Thanks in advance.
Hello, Does anyone know which version of MySQL supports searchs where a user could use "and" and "or" etc... So For example, "+term +term" would be that same as "term and term" Thanks in advance.
Feb 3, 2004 #2 vanekl Programmer Nov 25, 2003 69 US Version 4.0.1+ has full-text search capabilities that you allude to. mysql> SELECT * FROM atable WHERE MATCH (field1,field2) -> AGAINST ('+term1 +term2 -term3' IN BOOLEAN MODE); This capability is only provided for the MyISAM table type. There are no versions of MySQL, AFAIK, that support "+term +term" in the SQL WHERE clause which isn't using a full-text search, however. Upvote 0 Downvote
Version 4.0.1+ has full-text search capabilities that you allude to. mysql> SELECT * FROM atable WHERE MATCH (field1,field2) -> AGAINST ('+term1 +term2 -term3' IN BOOLEAN MODE); This capability is only provided for the MyISAM table type. There are no versions of MySQL, AFAIK, that support "+term +term" in the SQL WHERE clause which isn't using a full-text search, however.