惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Cloudbric
Cloudbric
E
Exploit-DB.com RSS Feed
SecWiki News
SecWiki News
Forbes - Security
Forbes - Security
N
News | PayPal Newsroom
S
Security @ Cisco Blogs
Schneier on Security
Schneier on Security
V
V2EX - 技术
S
Secure Thoughts
W
WeLiveSecurity
Google DeepMind News
Google DeepMind News
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
S
Securelist
S
Security Archives - TechRepublic
Know Your Adversary
Know Your Adversary
V
Vulnerabilities – Threatpost
Security Latest
Security Latest
Recent Commits to openclaw:main
Recent Commits to openclaw:main
G
GRAHAM CLULEY
H
Hacker News: Front Page
Microsoft Azure Blog
Microsoft Azure Blog
I
Intezer
Google Online Security Blog
Google Online Security Blog
美团技术团队
阮一峰的网络日志
阮一峰的网络日志
T
The Exploit Database - CXSecurity.com
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Webroot Blog
Webroot Blog
Jina AI
Jina AI
Engineering at Meta
Engineering at Meta
P
Proofpoint News Feed
The Cloudflare Blog
I
InfoQ
L
LangChain Blog
U
Unit 42
P
Proofpoint News Feed
S
Schneier on Security
S
Security Affairs
Y
Y Combinator Blog
T
Tenable Blog
N
News and Events Feed by Topic
MyScale Blog
MyScale Blog
量子位
Google DeepMind News
Google DeepMind News
Cyberwarzone
Cyberwarzone
博客园 - 聂微东
D
Darknet – Hacking Tools, Hacker News & Cyber Security
GbyAI
GbyAI
AWS News Blog
AWS News Blog

博客园 - sharmy

[转]快速理解数据库中的索引(Indexes in Database) mysql数据库中的索引与优化、理解与用途 MySQL锁机制 mysql查找执行效率慢的SQL语句 Lighttpd 编写lighttpd插件 Lighttpd 配置与性能优化 Apache SSL Module 介绍,原理及安装 ulimit 修改常见服务器的banner mysql M/S配置小记 MySQL触发器自动更新memcache[转] - sharmy 用css sprites(图像拼合技术)优化css加快网站速度[转] php效率高写法 memcache在大型网站的应用策略【转】 - sharmy 开发大型高负载类网站应用的几个要点[转] asp.net性能常用优化 转 缓存理解 转 如何利用客户端缓存对网站进行优化?
经典mysql 语句收录
sharmy · 2009-07-11 · via 博客园 - sharmy

mysql 随机取数据

SELECT t1.id as id,title,content,class_name,class_id,hits FROM table AS t1 

JOIN (SELECT ROUND(RAND() * ((SELECT MAX(id) FROM table)-(SELECT MIN(id) FROM table ))+(SELECT MIN(id) FROM table)) AS id) AS t2 

WHERE t1.id >= t2.id ORDER BY t1.id LIMIT 1;