Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 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 获取随机记录的任何其他方式?
所有你需要的是
... ORDER BY RAND() LIMIT 4