【问题标题】:sphinx search problem狮身人面像搜索问题
【发布时间】:2011-05-16 20:02:54
【问题描述】:

group by 和 count 在 sphinx search v 2.0.1B 中不起作用,为什么?

mysql> select count(*) from my_index group by myattr; 错误 1064 (42000): sphinxql: 语法错误,意外 FROM,期望 IDENT 靠近 'from my_index group by myattr'

只是分组而不用计数。

【问题讨论】:

    标签: mysql sphinx


    【解决方案1】:

    试试这个。

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

    【讨论】: