How to write sphinx queries with OR condition
问题 I need to create a sphinx query in my project with OR condition. But giving an OR condition like select cost FROM transactionsChart WHERE cost=25 OR cost=5; is not working. It returns an error like ERROR 1064 (42000): sphinxql: syntax error, unexpected OR, expecting $end near 'OR cost=5' Can anybody help me.... Thanks in advance 回答1: Sphinx doesnt support OR in the WHERE clause, only AND . For your specific example, could use IN syntax, sphinxql> SELECT cost FROM transactionsChart WHERE cost