在SphinxQL中,如何从索引中获取随机记录?
SELECT fname FROM indexname WHERE Age>=21 and Age<=47 random 0,4 \G;获取以下错误:
sphinxql: syntax error, unexpected CONST_INT, expecting BETWEEN (or 8 other tokens) near '0,4还有没有其他方法可以从SphinxQl获取随机记录?
发布于 2013-03-15 22:36:42
你所需要的是
... ORDER BY RAND() LIMIT 4https://stackoverflow.com/questions/15434291
复制相似问题