How to request a random row in SQL?

前端 未结 29 2916
孤城傲影
孤城傲影 2020-11-21 06:45

How can I request a random row (or as close to truly random as is possible) in pure SQL?

29条回答
  •  灰色年华
    2020-11-21 07:31

    You may also try using new id() function.

    Just write a your query and use order by new id() function. It quite random.

提交回复
热议问题