mysql,mssql,access 随机读取N条记录的写法发布于 2010 年 12 月 29 日全文约 37 字·预计阅读 1 分钟随机取出n条记录: mysql: Select * From 表 order By rand() Limit n Sql server: select top n * from 表 order by newid() Access: Select top n * FROM 表 orDER BY Rnd(id)mysql,mssql,access 随机读取N条记录的写法https://www.netpc.com.cn/blog/archives/42.html分享文章目录×mysql,mssql,access 随机读取N条记录的写法← 上一篇《宫崎骏动画全集》(Hayao Miyazaki Animation)下一篇 →FCKeditor 添加删除上传文件(图片)的功能发表评论提交评论 评论 0 条暂无评论,来说点什么吧。
随机取出n条记录: mysql: Select * From 表 order By rand() Limit n Sql server: select top n * from 表 order by newid() Access: Select top n * FROM 表 orDER BY Rnd(id)
评论 0 条
暂无评论,来说点什么吧。