mysql 怎样随机抽取数据库中的10条内容?
问题
怎样随机抽取数据库中的10条内容?
解决方法
有没有好的解决方案,效率高,方法简单的。
参考答案
如果你有缓存系统.... 直接从缓存中加载....
参考答案
没有~
参考答案
random 语法...
参考答案
为什么不用Rand函数
参考答案
rand是肯定要用的,但是我不知道这个SQL语句该怎么写
参考答案
SELECT ... FROM ... WHERE ... ORDER BY RAND() LIMIT 10
复制代码
参考答案
原帖由 Fising 于 2009-1-4 11:54 发表 [url=http://bbs.111cn.cn/redirect.php?goto=findpost&pid=814691&ptid=100356]链接标记[img]http://bbs.111cn.cn/images/common/back.gif[/img][/url]
SELECT ... FROM ... WHERE ... ORDER BY RAND() LIMIT 10
学习之
参考答案
谢谢,我刚才也是这样写的,但是提示语句错误,是不是rand必须大写?我刚才小写的,错误。
参考答案
[url=http://www.linvo2008.cn/blog/?p=7]链接标记http://www.linvo2008.cn/blog/?p=7[/url]

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Atom editor mac version download
The most popular open source editor

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Dreamweaver Mac version
Visual web development tools

Notepad++7.3.1
Easy-to-use and free code editor