postgres随机查询一条数据

更新于 阅读 40

随机查询一条数据

select id from table where xxx order by random() limit 1 ;
标签: