2011-05-15 6 views
0

groupe par et le nombre ne fonctionne pas dans sphinx recherche v 2.0.1B, pourquoi?sphinx problème de recherche

 
mysql> select count(*) from my_index group by myattr; 
ERROR 1064 (42000): sphinxql: syntax error, unexpected FROM, expecting IDENT near 'from my_index group by myattr' 

il suffit de grouper par sans le nombre fonctionne bien.

Répondre

1

Essayez ceci.

select count(*) as cnt from my_index group by myattr;