2011-05-15 74 views
0

斯芬克斯搜索v 2.0.1B中的group by和count不起作用,爲什麼?斯芬克斯搜索問題

 
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' 

只是分組沒有計數工程雖然。

回答

1

試試這個。

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