从SQL数据库中选择随机行。

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了从SQL数据库中选择随机行。相关的知识,希望对你有一定的参考价值。

This is by no means the most efficient way to do this, in terms of performance.
It is however the easiest way.
  1. SELECT * FROM `table` ORDER BY rand() LIMIT 1

以上是关于从SQL数据库中选择随机行。的主要内容,如果未能解决你的问题,请参考以下文章