SphinxQL在过滤器iewhere条件中使用别名属性

时间:2012-04-25 13:06:48

标签: mysql filtering sphinx alias

Sphinx 2.0.4-release(r3135)

SELECT @weight as W 
FROM titles;

(当我在SphinxQL中执行此操作时,不使用过滤器中的别名W(即where condition))我得到以下结果

+ ------ + -------- + ------ +
| id |重量| w |
+ ------ + -------- + ------ +
| 2 | 1 | 1 |
| 4 | 1 | 1 |
| 6 | 1 | 1 |
| 8 | 1 | 1 |
+ ------ + -------- + ------ +

SELECT @weight as W 
FROM titles 
WHERE W = 1;

(当我在SphinxQL中执行此操作时,通过在过滤器中使用别名W(即where条件))我得到空集

空集(0.00秒)

从这个链接,  http://sphinxsearch.com/forum/view.html?id=9387

它说这是SphinxQL中的一个错误,最新的SVN版本解决了这个问题。哪个是最新的svn版本?

我不知道要检查和安装哪个版本。

请帮忙!

找到回答

请点击此链接:

http://sphinxsearch.com/forum/view.html?id=9387

1 个答案:

答案 0 :(得分:0)

找到答案

请点击此链接:

http://sphinxsearch.com/forum/view.html?id=9387