mysql随机取数据,分页 随机生成数组作为查询数据的ID,然后根据数组来查询数据。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 $id = rand(1, xxxxx);select xx from xx where id>=$id limit xx或者$id_arr = array();while(count($id_arr)<=xx){ $id = rand(1,xxxx); $id_arr[$id] = $id;}select xxxx from xxxx where id in $id_arr; 你可用随机等距法提取数据,并传递起始偏移 版主可以给个例子吗。看不懂啊 Uncaught exception 'com_exception' with message '操作无法使用 ' php post到本页面刷新弹出重复提交框 韩文 oralce php如何连接sql server 请高手介绍如何编写PHP多线程程序 我的php里没有php_gd.dll,有哪位好心人能告诉我在哪里有下吗? 选择了列表中的多个值,怎样将其显示出来? 怎样动态判断客户端浏览器的语种? 关于header(location)的问题, 梦网的特服号怎么申请? PHP向SQL Server 2008存入照片无法在页面上显示 http请求变量释放问题
select xx from xx where id>=$id limit xx
或者
$id_arr = array();
while(count($id_arr)<=xx)
{
$id = rand(1,xxxx);
$id_arr[$id] = $id;
}
select xxxx from xxxx where id in $id_arr;